Index: trunk/phase3/includes/SpecialUnwatchedpages.php |
— | — | @@ -57,6 +57,11 @@ |
58 | 58 | * constructor |
59 | 59 | */ |
60 | 60 | function wfSpecialUnwatchedpages() { |
| 61 | + global $wgUser, $wgUnwatchedPagesPermission, $wgOut; |
| 62 | + |
| 63 | + if ( ! $wgUser->isAllowed( $wgUnwatchedPagesPermission ) ) |
| 64 | + return $wgOut->permissionRequired( $wgUnwatchedPagesPermission ); |
| 65 | + |
61 | 66 | list( $limit, $offset ) = wfCheckLimits(); |
62 | 67 | |
63 | 68 | $wpp = new UnwatchedpagesPage(); |
Index: trunk/phase3/includes/DefaultSettings.php |
— | — | @@ -1394,6 +1394,12 @@ |
1395 | 1395 | */ |
1396 | 1396 | $wgEnableUnwatchedpages = false; |
1397 | 1397 | |
| 1398 | +/** |
| 1399 | + * Users must have this permission to view Special:Unwatchedpages, e.g. |
| 1400 | + * 'protect' for only allowing >sysops. '' for none |
| 1401 | + */ |
| 1402 | +$wgUnwatchedPagesPermission = ''; |
| 1403 | + |
1398 | 1404 | /** Allow the "info" action, very inefficient at the moment */ |
1399 | 1405 | $wgAllowPageInfo = false; |
1400 | 1406 | |