deprecated since 1.34 and unused in Wikimedia deployed repositories. Bug: T274211 Change-Id: If00e52255b8f555f0e60584c44970c42afe0270e
25 lines
605 B
PHP
25 lines
605 B
PHP
<?php
|
|
|
|
namespace MediaWiki\Permissions\Hook;
|
|
|
|
use User;
|
|
|
|
/**
|
|
* This is a hook handler interface, see docs/Hooks.md.
|
|
* Use the hook name "UserGetRights" to register handlers implementing this interface.
|
|
*
|
|
* @stable to implement
|
|
* @ingroup Hooks
|
|
*/
|
|
interface UserGetRightsHook {
|
|
/**
|
|
* This hook is called in PermissionManager::getUserPermissions().
|
|
*
|
|
* @since 1.35
|
|
*
|
|
* @param User $user User to get rights for
|
|
* @param string[] &$rights Current rights
|
|
* @return bool|void True or no return value to continue or false to abort
|
|
*/
|
|
public function onUserGetRights( $user, &$rights );
|
|
}
|