Revert r56635 "Implement a 'root' permission, which grants all other permissions...
authorBrion Vibber <brion@users.mediawiki.org>
Tue, 29 Sep 2009 23:16:30 +0000 (23:16 +0000)
committerBrion Vibber <brion@users.mediawiki.org>
Tue, 29 Sep 2009 23:16:30 +0000 (23:16 +0000)
I'd much rather keep permission keys clean and separate.

RELEASE-NOTES
includes/User.php
languages/messages/MessagesEn.php
languages/messages/MessagesQqq.php
maintenance/language/messages.inc

index ed68a45..70365c1 100644 (file)
@@ -232,9 +232,6 @@ 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.
 * New configuration variable $wgShowPageOnRedlink that can be set to show the
   page instead of an edit interface when visiting a red link. The value can be
   specified for specific usergroups and namespaces.
index 75749ec..7f40790 100644 (file)
@@ -2154,8 +2154,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 );
+               return in_array( $action, $this->getRights(), true );
        }
 
        /**
index 95ebc7a..7b90e91 100644 (file)
@@ -1932,7 +1932,6 @@ 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',
 'right-sendemail'             => 'Send e-mail to other users',
 
 # User rights log
index f50f104..7f16fcf 100644 (file)
@@ -1367,8 +1367,6 @@ 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.",
 'right-sendemail'             => '{{doc-right}}',
 
 # User rights log
index e76cd72..ef8ceb1 100644 (file)
@@ -1112,7 +1112,6 @@ $wgMessageStructure = array(
                'right-reset-passwords',
                'right-override-export-depth',
                'right-versiondetail',
-               'right-root',
                'right-sendemail',
        ),
        'rightslog' => array(