Question about roles system.

Re: Question about roles system.

by Tim Hunt -
Number of replies: 0
Picture of Core developers Picture of Documentation writers Picture of Particularly helpful Moodlers Picture of Peer reviewers Picture of Plugin developers
Why do you want to know if a user is a teacher? What are you going to do, or not do, based on that knowledge?

has_capability does not know anything about groups, I suspect the group restriction is coming from elsewhere in the code. Where is $user coming from.