* fix error in buildSelector function

This commit is contained in:
Ryan Schmidt 2008-07-02 01:44:20 +00:00
parent f54ec4339e
commit bbbd2e176a

View 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 )