* fix error in buildSelector function
This commit is contained in:
parent
f54ec4339e
commit
bbbd2e176a
1 changed files with 1 additions and 1 deletions
|
|
@ -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 )
|
||||
|
|
|
|||
Loading…
Reference in a new issue