accesslib: drop rdef mangling for default role - check in has_cap_fad()
authormartinlanghoff <martinlanghoff>
Wed, 19 Sep 2007 07:16:18 +0000 (07:16 +0000)
committermartinlanghoff <martinlanghoff>
Wed, 19 Sep 2007 07:16:18 +0000 (07:16 +0000)
commit3ac81bd159c48c400b6bb4a9b4f2847d8b1b3482
treed0894b24c591b8fef3c5fbb856ab581222918214
parent33b6014f72cb4884c7729e5dfba2164664dbf723
accesslib: drop rdef mangling for default role - check in has_cap_fad()

There are some exceptions when checking for caps that are inherited
from the default role. Move the check into has_cap_fad() and stop
mangling the data we put in $ad[rdef].

We now also set $ad[dr] to record default roles added.

This will later allow us to share rdef across many users in $ACCESS.

Affects:
  load_user_accessdata()
  has_cap_fad()

While at it, document has_cap_fad() a bit.
lib/accesslib.php