< Manual:Hooks
| PermissionErrorAudit | |
|---|---|
| Available from version 1.39.0 (Gerrit change 802483) Called after permission checks to allow logging. | |
| Define function: | public static function onPermissionErrorAudit( LinkTarget $title, UserIdentity $user, string $action, string $rigor, array $errors ) { ... }
|
| Attach hook: | In extension.json:
{
"Hooks": {
"PermissionErrorAudit": "MyExtensionHooks::onPermissionErrorAudit"
}
}
|
| Called from: | File(s): Permissions/PermissionManager.php Function(s): getPermissionErrorsInternal |
| Interface: | PermissionErrorAuditHook.php |
For more information about attaching hooks, see Manual:Hooks.
For examples of extensions using this hook, see Category:PermissionErrorAudit extensions.
Details
LinkTarget $titlePage in questionUserIdentity $userUser to checkstring $actionAction being checkedstring $rigorOne of PermissionManager::RIGOR_ constantsarray[] $errorsArray of arrays of the arguments to wfMessage to explain permissions problems.
Cannot be aborted.
See also
- getUserPermissionsErrors
- getUserPermissionsErrorsExpensive
This article is issued from Mediawiki. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.