Jump to content
MediaWiki

Extension:GlobalUserrights

From mediawiki.org
MediaWiki extensions manual
GlobalUserrights
Release status: stable
Implementation Special page
Description Allows easy management of global user rights through Special:GlobalUserrights
Author(s) Mainframe98, Nathaniel Herman (Pinky talk )
Latest version 1.5.0 (2017年10月02日)
MediaWiki 1.15+
Database changes Yes
  • userrights-global
Licence GNU General Public License 2.0 or later
Download
Translate the GlobalUserrights extension if it is available at translatewiki.net
Issues Open tasks · Report a bug

The GlobalUserrights extension 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 .

Installation

[edit ]
  • Download and move the extracted GlobalUserrights folder to your extensions/ directory.
    Developers and code contributors should install the extension from Git instead, using:
    cdextensions/
    gitclonehttps://gerrit.wikimedia.org/r/mediawiki/extensions/GlobalUserrights
    
  • Add the following code at the bottom of your LocalSettings.php file:
    wfLoadExtension( 'GlobalUserrights' );
    
  • Run the update script which will automatically create the necessary database tables that this extension needs.
  • Make sure global_user_groups is a shared table by adding it to $wgSharedTables in LocalSettings.php – e.g.
    $wgSharedTables[] = 'global_user_groups';
  • Be sure to give the userrights-global right to users who need access to Special:GlobalUserRights; by default the staff group 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;
  • Yes Done – Navigate to Special:Version on your wiki to verify that the extension is successfully installed.


Usage

[edit ]
  1. Go to Special:GlobalUserrights
  2. Enter in the user name of the user whose global rights you want to change.
  3. Use the interface to add or remove global groups to/from the user and save.

System messages

[edit ]
This page is outdated.
It was written for an older version of MediaWiki and may not apply to the most recent version. If you have checked or updated this page and found the content to be suitable, please remove this notice. See the talk page for a possible discussion on this.

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 changed, 2ドル is the array of old groups and 3ドル is the array of new groups.
logentry-gblrights-rights 1ドル changed global group membership for 3ドル from 4ドル to 5ドル New style log entry generated by this extension when a user's global groups are changed. 1ドル is the user who changed the right, 2ドル is the user's gender, 3ドル is the user whose groups were changed, 4ドル is the array of old groups, 5ドル is the array of new groups and 6ドル is the gender of the user whose groups where changed.
right-userrights-global Manage global user rights Description of the user right, will be shown on Special:ListGroupRights

AltStyle によって変換されたページ (->オリジナル) /