| Access: $wgAvailableRights | |
|---|---|
| A list of available rights, in addition to the ones defined by the core. |
|
| Introduced in version: | 1.13.0 (r34357) |
| Removed in version: | still in use |
| Allowed values: | (array of strings) |
| Default value: | [] |
| Other settings: Alphabetical | By function | |
Details
The list of core user rights is defined in PermissionManager.php, $coreRights.
See Manual:User rights#Adding new rights.
Extensions (until MediaWiki 1.24) use this variable instead, like:
$wgAvailableRights[] = 'ninja-powers';
| MediaWiki version: | ≥ 1.25 Gerrit change 166705 |
Since MediaWiki 1.25 do in extension.json:
"AvailableRights": [
"ninja-powers"
],
See also
- Manual:$wgGroupPermissions
- Manual:$wgGrantPermissions
- Manual:User rights
This article is issued from Mediawiki. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.