Extension:GlobalUserrights
From MediaWiki.org
|
GlobalUserrights Release status: stable |
|||
|---|---|---|---|
| Implementation | Special page | ||
| Description | Allows easy management of global user rights through Special:GlobalUserrights | ||
| Author(s) | Nathaniel Herman | ||
| Last version | 1.0.3 (2 October 2011) | ||
| MediaWiki | 1.14 r44213+ | ||
| License | GNU General Public License 2.0 or later | ||
| Download | Download snapshot Subversion [Help] |
||
|
|||
|
|||
|
Check usage (experimental) |
|||
GlobalUserrights is an extension that enables global user groups and allows easy management of them via Special:GlobalUserrights. Global group changes are logged to Special:Log/gblrights (same place CentralAuth would log them). This extension is used in conjunction with $wgSharedDB.
[edit] Installation
- Download required files and place them in
$IP/extensions/GlobalUserrights - Edit LocalSettings.php and put
require_once("$IP/extensions/GlobalUserrights/GlobalUserrights.php");
near the end of the file. - Apply the
global_user_groups.sqlpatch to $wgSharedDB to create the global_user_groups table. Execute the following in the command-line interface:
php maintenance/sql.php extensions/GlobalUserrights/global_user_groups.sql - Make sure
global_user_groupsis a shared table by adding it to $wgSharedTables in LocalSettings.php - e.g.
$wgSharedTables[] = 'global_user_groups';. - Be sure to give the
userrights-globalright to users who need access to Special:GlobalUserRights; by default thestaffgroup has this user right. If you would want to allow administrators to access the special page, you could add the following to the configuration file:$wgGroupPermissions['sysop']['userrights-global'] = true;
[edit] Usage
- Go to Special:GlobalUserrights
- Enter in the user name of the user whose global rights you want to change.
- Use the interface to add or remove global groups to/from the user and save.
[edit] System messages
The following new system messages are defined by this extension:
| Message | Default value | Description |
|---|---|---|
| globaluserrights | Global User Rights Management | Special page title displayed on Special:SpecialPages and on Special:GlobalUserrights |
| gur-desc | Easy global user rights administration | Extension description shown on Special:Version |
| gur-rightslog-name | Global rights log | Log title for Special:Log/gblrights, the log where global user rights changes are stored. This will also be displayed on the dropdown menu on Special:Log. |
| gur-rightslog-header | This is a log of changes to global rights. | Displayed on Special:Log/gblrights, explaining the purpose of that log. |
| gur-rightslog-entry | changed global group membership for $1 from $2 to $3 | Log entry generated by this extension when a user's global groups are changed. $1 is the user whose groups were changes, $2 is the array of old groups and $3 is the array of new groups. |
| right-userrights-global | Manage global user rights | Description of the user right, will be shown on Special:ListGroupRights |