Page Menu
Home
WickedGov Phorge
Search
Configure Global Search
Log In
Files
F7423094
UserGetRightsRemoveHook.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
886 B
Referenced Files
None
Subscribers
None
UserGetRightsRemoveHook.php
View Options
<?php
namespace
MediaWiki\Permissions\Hook
;
use
MediaWiki\User\User
;
/**
* This is a hook handler interface, see docs/Hooks.md.
* Use the hook name "UserGetRightsRemove" to register handlers implementing this interface.
*
* @stable to implement
* @ingroup Hooks
*/
interface
UserGetRightsRemoveHook
{
/**
* This hook is called in PermissionManager::getUserPermissions(). 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.
*
* @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
onUserGetRightsRemove
(
$user
,
&
$rights
);
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Sun, Nov 22, 06:21 (23 h, 21 m)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
b6/4e/ee69b2c858ab450d9343aa21a0de
Default Alt Text
UserGetRightsRemoveHook.php (886 B)
Attached To
Mode
rMWPROD MediaWiki Production
Attached
Detach File
Event Timeline
Log In to Comment