I am using yii2 basic and have implemented RBAC using permissions, roles.
I have Employee table and I have assigned Employee model to user application component.
Now the scenario is when admin creates employee he has to assign a role to that employee using auth_assignment CRUD.
Unless and until role has been assigned, the employee should not be able to login. Login page should be displayed to him with error message. (Similar to the scenario when incorrect username or password is entered by user.)
You have already been told multiple times that you need to study - so go read the docs!
The problem is not that you ask questions, but that you consistently ask other people to spoon feed / hand hold you each and every step of the way.
In this article - Help Vampires - this is how one would identify one:
Does he ask the same, tired questions others ask?
Does he clearly lack the ability or inclination to ask the almighty Google?
Does he refuse to take the time to ask coherent, specific questions?
Does he think helping him must be the high point of your day?
Is he obviously just waiting for some poor, well-intentioned person to do all his thinking for him?
Can you tell he really isn’t interested in having his question answered, so much as getting someone else to do his work?
Don’t be a help vampire, please.
So, how do you stop being a help vampire, then?
[list=1]Keep troubleshooting. Often we learn that it’s easier to give up and ask for help rather than persisting—when we’d get our breakthrough if we’d only delay giving up for another 10 minutes. Respect yourself, go a little further before giving up.Google, of course. Try at least 3 or 4 searches before you give it up as hopeless.Mailing lists, forums, and newsgroups. Chances are, you’re not the first person on the Earth to have this problem. Luckily we live in an age where we can search the past. Check out these resources next.Docs. Sometimes they seem impenetrable, but give it a whack. The more you learn, the easier the documentation will be to understand and decipher.[*]Ask your question—but phrase it differently. Instead of asking your question directly, ask “Has anyone has seen this problem?” or “Can anyone point me in the right direction?” Likely as not, someone will have been there before, and they might know a blog posting or other resource which can help you out. This way, you show you are respectful of their time, and understand your problem is (probably) not unique.[/list]