MediaWiki REL1_37
MediaWiki\Permissions\Hook\UserGetRightsHook Interface Reference

This is a hook handler interface, see docs/Hooks.md. More...

Inheritance diagram for MediaWiki\Permissions\Hook\UserGetRightsHook:

Public Member Functions

 onUserGetRights ( $user, &$rights)
 This hook is called in PermissionManager::getUserPermissions().
 

Detailed Description

This is a hook handler interface, see docs/Hooks.md.

Use the hook name "UserGetRights" to register handlers implementing this interface.

Stability: stable
to implement

Definition at line 14 of file UserGetRightsHook.php.

Member Function Documentation

◆ onUserGetRights()

MediaWiki\Permissions\Hook\UserGetRightsHook::onUserGetRights (   $user,
$rights 
)

This hook is called in PermissionManager::getUserPermissions().

Since
1.35
Parameters
User$userUser to get rights for
string[]&$rightsCurrent rights
Returns
bool|void True or no return value to continue or false to abort

Implemented in MediaWiki\HookContainer\HookRunner.


The documentation for this interface was generated from the following file: