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
Post a Comment