* fix error in buildSelector function
authorRyan Schmidt <skizzerz@users.mediawiki.org>
Wed, 2 Jul 2008 01:44:20 +0000 (01:44 +0000)
committerRyan Schmidt <skizzerz@users.mediawiki.org>
Wed, 2 Jul 2008 01:44:20 +0000 (01:44 +0000)
includes/ProtectionForm.php

index 931c9e9..e778782 100644 (file)
@@ -337,7 +337,7 @@ class ProtectionForm {
                        //don't let them choose levels above their own (aka so they can still unprotect and edit the page). but only when the form isn't disabled
                        if( $key == 'sysop' ) {
                                //special case, rewrite sysop to protect and editprotected
-                               if( !$wgUser->isAllowed('protect') && !$wgUser->isAllowed('editprotected') && $this->disabled )
+                               if( !$wgUser->isAllowed('protect') && !$wgUser->isAllowed('editprotected') && !$this->disabled )
                                        continue;
                        } else {
                                if( !$wgUser->isAllowed($key) && !$this->disabled )