From: Tim Starling Date: Sat, 14 May 2005 05:38:01 +0000 (+0000) Subject: allow people with the "protect" privilege to unprotect pages with "sysop" restriction X-Git-Tag: 1.5.0alpha2~211 X-Git-Url: http://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/exercices//%22http:/www.mozilla.com/en-US/firefox/upgrade.html?a=commitdiff_plain;h=e4b84d37062daa5edc11966a159fd43e96663a15;p=lhc%2Fweb%2Fwiklou.git allow people with the "protect" privilege to unprotect pages with "sysop" restriction --- diff --git a/includes/Title.php b/includes/Title.php index 288a5f2f65..f663096094 100644 --- a/includes/Title.php +++ b/includes/Title.php @@ -863,6 +863,10 @@ class Title { } foreach( $this->getRestrictions($action) as $right ) { + // Backwards compatibility, rewrite sysop -> protect + if ( $right == 'sysop' ) { + $right = 'protect'; + } if( '' != $right && !$wgUser->isAllowed( $right ) ) { wfProfileOut( $fname ); return false;