MediaWiki REL1_35
|
Stable to implement. More...
Public Member Functions | |
onUserGetRightsRemove ( $user, &$rights) | |
This hook is called in User::getRights(). | |
Stable to implement.
Definition at line 11 of file UserGetRightsRemoveHook.php.
MediaWiki\Permissions\Hook\UserGetRightsRemoveHook::onUserGetRightsRemove | ( | $user, | |
& | $rights | ||
) |
This hook is called in User::getRights().
This hook overrides the UserGetRights hook. It can be used to remove rights from a user and ensure that they will not be reinserted by the other hook callbacks. This hook should not be used to add any rights; use UserGetRights instead.
Implemented in MediaWiki\HookContainer\HookRunner.