From: Ryan Schmidt Date: Wed, 2 Jul 2008 01:44:20 +0000 (+0000) Subject: * fix error in buildSelector function X-Git-Tag: 1.31.0-rc.0~46816 X-Git-Url: http://git.cyclocoop.org//%22javascript:ModifierStyle%28%27%22.%24id.%22%27%29/%22?a=commitdiff_plain;h=bbbd2e176a2ac2fea4f478e310f076cfd3ccbe29;p=lhc%2Fweb%2Fwiklou.git * fix error in buildSelector function --- diff --git a/includes/ProtectionForm.php b/includes/ProtectionForm.php index 931c9e9ee8..e778782277 100644 --- a/includes/ProtectionForm.php +++ b/includes/ProtectionForm.php @@ -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 )