r63383 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r63382‎ | r63383 | r63384 >
Date:11:00, 8 March 2010
Author:aaron
Status:ok
Tags:
Comment:
Apply fpc_level restriction to 'review' as well as 'autoreview'
Modified paths:
  • /trunk/extensions/FlaggedRevs/FlaggedRevs.hooks.php (modified) (history)
  • /trunk/extensions/FlaggedRevs/FlaggedRevs.sql (modified) (history)

Diff [purge]

Index: trunk/extensions/FlaggedRevs/FlaggedRevs.sql
@@ -112,7 +112,7 @@
113113 fpc_select integer NOT NULL,
114114 -- Override the page?
115115 fpc_override bool NOT NULL,
116 - -- The protection level (Sysop, etc) for autoreview
 116+ -- The protection level (Sysop, etc) for autoreview/review
117117 fpc_level varbinary(60) NULL,
118118 -- Field for time-limited settings
119119 fpc_expiry varbinary(14) NOT NULL default 'infinity'
Index: trunk/extensions/FlaggedRevs/FlaggedRevs.hooks.php
@@ -806,8 +806,8 @@
807807 $result = false;
808808 return false;
809809 }
810 - # Enforce autoreview restrictions
811 - } else if( $action === 'autoreview' ) {
 810+ # Enforce autoreview/review restrictions
 811+ } else if( $action === 'autoreview' || $action === 'review' ) {
812812 # Get autoreview restriction settings...
813813 $config = FlaggedRevs::getPageVisibilitySettings( $title, true );
814814 # Convert Sysop -> protect

Status & tagging log