Location of has_capability() method in Moodle -


i trying understand access control in moodle. want have @ definition of method has_capability() in project. has idea in file can find definition of method?

as said, it's in file called accesslib.php under server -> moodle -> lib.

adding little more info that, has_capability() 1 of important function of moodle , checks whether user has particular capability in given context.

function has_capability($capability, context $context, $user = null, $doanything = true) 

more info on can found here.


Comments

Popular posts from this blog

php - Why I am getting the Error "Commands out of sync; you can't run this command now" -

ruby - Nesting modules inside of a Rails eninge gem -

Eclipse formatter for java ending braces -