Letting sysops change the wiki-wide stylesheet, instead of bureaucrats.
authorTim Starling <tstarling@users.mediawiki.org>
Thu, 3 Jun 2004 02:46:48 +0000 (02:46 +0000)
committerTim Starling <tstarling@users.mediawiki.org>
Thu, 3 Jun 2004 02:46:48 +0000 (02:46 +0000)
Bureaucrats have no role in practical tasks, they exist only for the purpose of making sysops. Sysops are trusted not to take malicious actions. Changes to stylesheets cannot cause data loss, and can even be reverted by sysops in the case of total site failure using a hand-constructed rollback URL.

includes/Title.php

index 6a2ae9f..fdf2554 100644 (file)
@@ -495,7 +495,7 @@ class Title {
                # protect global styles and js
                if ( NS_MEDIAWIKI == $this->mNamespace 
                     && preg_match("/\\.(css|js)$/", $this->mTextform )
-                    && !$wgUser->isBureaucrat() )
+                    && !$wgUser->isSysop() )
                { return false; }
                //if ( $this->isCssJsSubpage() and !$this->userCanEditCssJsSubpage() ) { return false; }
                # protect css/js subpages of user pages