]> git.mjollnir.org Git - moodle.git/commit
accesslib: has_cap_fad() - merge switchrole with defaultuserrole
authormartinlanghoff <martinlanghoff>
Wed, 19 Sep 2007 07:18:23 +0000 (07:18 +0000)
committermartinlanghoff <martinlanghoff>
Wed, 19 Sep 2007 07:18:23 +0000 (07:18 +0000)
commit3d034f77a8e90df70cc1ae7739c1276c8a317aca
tree1860d9c9cbeceb2f83ebdc2612040615a9085244
parentceaf84755452e5491a5d77366bbf88c576a8a714
accesslib: has_cap_fad() - merge switchrole with defaultuserrole

If you are a teacher in course X, you have at least
teacher-in-X + defaultloggedinuser-sitewide. So in the
course you'll have techer+defaultloggedinuser.
We try to mimic that in switchrole.

Thanks to Petr for pointing me to a similar fix in CVS.

Probably related: MDL-10945
lib/accesslib.php