*/
$wgEnableUnwatchedpages = false;
+/**
+ * Users must have this permission to view Special:Unwatchedpages, e.g.
+ * 'protect' for only allowing >sysops. '' for none
+ */
+$wgUnwatchedPagesPermission = '';
+
/** Allow the "info" action, very inefficient at the moment */
$wgAllowPageInfo = false;
* constructor
*/
function wfSpecialUnwatchedpages() {
+ global $wgUser, $wgUnwatchedPagesPermission, $wgOut;
+
+ if ( ! $wgUser->isAllowed( $wgUnwatchedPagesPermission ) )
+ return $wgOut->permissionRequired( $wgUnwatchedPagesPermission );
+
list( $limit, $offset ) = wfCheckLimits();
$wpp = new UnwatchedpagesPage();