From: Huji Date: Mon, 25 Feb 2008 10:36:08 +0000 (+0000) Subject: (bug 13137) Bots to edit protected pages X-Git-Tag: 1.31.0-rc.0~49372 X-Git-Url: https://git.cyclocoop.org/%27.%24link.%27?a=commitdiff_plain;h=737e2a926c2a2b50b603c26b14dffa5e1944c255;p=lhc%2Fweb%2Fwiklou.git (bug 13137) Bots to edit protected pages --- diff --git a/RELEASE-NOTES b/RELEASE-NOTES index 78a3dd4d13..62985827d7 100644 --- a/RELEASE-NOTES +++ b/RELEASE-NOTES @@ -37,6 +37,7 @@ it from source control: http://www.mediawiki.org/wiki/Download_from_SVN * (bug 13084) Increase size of source/destination filename fields in upload form * (bug 13115) rebuildrecentchanges should print the current value of $wgRCMaxAge * (bug 13132) Unable to unprotect pages protected with earlier versions of MediaWiki +* (bug 13137) Bots to edit protected pages === API changes in 1.13 === diff --git a/includes/DefaultSettings.php b/includes/DefaultSettings.php index 8e048cc23f..eee944f323 100644 --- a/includes/DefaultSettings.php +++ b/includes/DefaultSettings.php @@ -1132,6 +1132,7 @@ $wgGroupPermissions['sysop']['move'] = true; $wgGroupPermissions['sysop']['patrol'] = true; $wgGroupPermissions['sysop']['autopatrol'] = true; $wgGroupPermissions['sysop']['protect'] = true; +$wgGroupPermissions['sysop']['editprotected'] = true; $wgGroupPermissions['sysop']['proxyunbannable'] = true; $wgGroupPermissions['sysop']['rollback'] = true; $wgGroupPermissions['sysop']['trackback'] = true; diff --git a/includes/Title.php b/includes/Title.php index 8a9d3eee6a..5db668a053 100644 --- a/includes/Title.php +++ b/includes/Title.php @@ -1195,7 +1195,7 @@ class Title { foreach( $this->getRestrictions($action) as $right ) { // Backwards compatibility, rewrite sysop -> protect if ( $right == 'sysop' ) { - $right = 'protect'; + $right = 'editprotected'; } if( '' != $right && !$user->isAllowed( $right ) ) { $errors[] = array( 'protectedpagetext', $right );