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

linux - Does gcc have any options to add version info in ELF binary file? -

android - send complex objects as post php java -

charts - What graph/dashboard product is facebook using in Dashboard: PUE & WUE -