For MediaWiki (recent comments | status changes | tags | authors | states | release notes)
Index: trunk/phase3/includes/Title.php =================================================================== --- trunk/phase3/includes/Title.php (revision 32163) +++ trunk/phase3/includes/Title.php (revision 32164) @@ -1193,7 +1193,18 @@ $right = 'protect'; } if( '' != $right && !$user->isAllowed( $right ) ) { - $errors[] = array( 'protectedpagetext', $right ); + //Users with 'editprotected' permission can edit protected pages + if( $action=='edit' && $user->isAllowed( 'editprotected' ) ) { + //Users with 'editprotected' permission cannot edit protected pages + //with cascading option turned on. + if($this->mCascadeRestriction) { + $errors[] = array( 'protectedpagetext', $right ); + } else { + //Nothing, user can edit! + } + } else { + $errors[] = array( 'protectedpagetext', $right ); + } } } Index: trunk/phase3/includes/DefaultSettings.php =================================================================== --- trunk/phase3/includes/DefaultSettings.php (revision 32163) +++ trunk/phase3/includes/DefaultSettings.php (revision 32164) @@ -1132,7 +1132,6 @@ $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; Index: trunk/phase3/RELEASE-NOTES =================================================================== --- trunk/phase3/RELEASE-NOTES (revision 32163) +++ trunk/phase3/RELEASE-NOTES (revision 32164) @@ -115,18 +115,22 @@ * Implemented {bl,ei,iu}redirect (lists links through redirects as well) * (bug 13154) Introduced subpages flag to meta=siteinfo&siprop=namespaces * (bug 13157) Added ucuserprefix parameter to list=usercontibs -* (bug 12394) Added rctitles parameter to list=recentchanges, making rcid retrieval easier +* (bug 12394) Added rctitles parameter to list=recentchanges, making rcid + retrieval easier * (bug 13218) Fix inclusion of " character in hyperlinks * Added watch and unwatch parameters to action=delete and action=move * Added action=edit * (bug 11401) Added xmldoublequote to xml formatter -* Added rvsection parameter to prop=revisions to allow fetching the content of a certain section only +* Added rvsection parameter to prop=revisions to allow fetching the content of + a certain section only * Introduced list=allimages * (bug 13371) Build page set from image hashes * Mark non-existent messages in meta=allmessages as missing * (bug 13390) One invalid title no longer kills an entire API query * (bug 13419) Fix gblredirect so it actually works * (bug 13418) Disable eiredirect because it's useless +* (bug 13137) Allow setting 'editprotected' right separately from 'protect', + so groups may optionally edit protected pages without having 'protect' perms === Languages updated in 1.13 ===