Implement a 'root' permission, which grants all other permissions. Useful for debugg...
authorHappy-melon <happy-melon@users.mediawiki.org>
Sat, 19 Sep 2009 12:50:00 +0000 (12:50 +0000)
committerHappy-melon <happy-melon@users.mediawiki.org>
Sat, 19 Sep 2009 12:50:00 +0000 (12:50 +0000)
RELEASE-NOTES
includes/User.php
languages/messages/MessagesEn.php
languages/messages/MessagesQqq.php
maintenance/language/messages.inc

index d804e1a..e576ac2 100644 (file)
@@ -230,6 +230,9 @@ it from source control: http://www.mediawiki.org/wiki/Download_from_SVN
   $wgAJAXCategoriesNamespaces.
 * Admins could disable some variants using $wgDisabledVariants now. ONLY apply on
   wikis enabled LanguageConverter.
+* A new permission, 'root', is created.  Analogous to root users on Unix systems,
+  the root permission effectively grants all other permissions on a wiki.  Useful
+  for debugging and administration.
 
 === Bug fixes in 1.16 ===
 
index 1f79998..eecaccf 100644 (file)
@@ -2152,6 +2152,7 @@ class User {
                # Use strict parameter to avoid matching numeric 0 accidentally inserted
                # by misconfiguration: 0 == 'foo'
                return in_array( $action, $this->getRights(), true )
+                       || in_array( 'root', $this->getRights(), true );
        }
 
        /**
index 15d983e..54f5c53 100644 (file)
@@ -1042,7 +1042,7 @@ Do not forget to change your [[Special:Preferences|{{SITENAME}} preferences]].',
 'login'                      => 'Log in',
 'nav-login-createaccount'    => 'Log in / create account',
 'loginprompt'                => 'You must have cookies enabled to log in to {{SITENAME}}.',
-'userlogin'                  => 'Log in / create account',
+'userlogin'                  => 'Log in',
 'logout'                     => 'Log out',
 'userlogout'                 => 'Log out',
 'notloggedin'                => 'Not logged in',
@@ -1090,6 +1090,7 @@ If someone else made this request, or if you have remembered your password,
 and you no longer wish to change it, you may ignore this message and
 continue using your old password.',
 'noemail'                    => 'There is no e-mail address recorded for user "$1".',
+'noemailcreate'              => 'You need to provide a valid email address',
 'passwordsent'               => 'A new password has been sent to the e-mail address registered for "$1".
 Please log in again after you receive it.',
 'blocked-mailpassword'       => 'Your IP address is blocked from editing, and so is not allowed to use the password recovery function to prevent abuse.',
@@ -1926,6 +1927,7 @@ You can also choose to let others contact you through your user or talk page wit
 'right-reset-passwords'       => "Reset other users' passwords",
 'right-override-export-depth' => 'Export pages including linked pages up to a depth of 5',
 'right-versiondetail'         => 'Show the extended software version information',
+'right-root'                  => 'Perform all actions on the wiki',
 
 # User rights log
 'rightslog'      => 'User rights log',
index 6ee77d9..92148b1 100644 (file)
@@ -1348,6 +1348,9 @@ An alternative wording for translators could be \'Get the wiki to accept a track
 'right-versiondetail'         => '{{doc-right|versiondetail}}
 
 Users having this right receive more detailed information on [[Special:Version]].',
+'right-root'                  => '{{doc-right|root}}
+Analogous to the \'root\' permission on Unix systems, allows the user to perform \'\'any\'\' action on the wiki; effectively granting them all other permissions.
+',
 
 # User rights log
 'rightslog'      => 'In [[Special:Log]]',
index 2dcd6df..7949f90 100644 (file)
@@ -1107,6 +1107,7 @@ $wgMessageStructure = array(
                'right-reset-passwords',
                'right-override-export-depth',
                'right-versiondetail',
+               'right-root',
        ),
        'rightslog' => array(
                'rightslog',