From 737e2a926c2a2b50b603c26b14dffa5e1944c255 Mon Sep 17 00:00:00 2001 From: Huji Date: Mon, 25 Feb 2008 10:36:08 +0000 Subject: [PATCH] (bug 13137) Bots to edit protected pages --- RELEASE-NOTES | 1 + includes/DefaultSettings.php | 1 + includes/Title.php | 2 +- 3 files changed, 3 insertions(+), 1 deletion(-) 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 ); -- 2.20.1