r87607 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r87606‎ | r87607 | r87608 >
Date:23:48, 6 May 2011
Author:jeroendedauw
Status:deferred
Tags:
Comment:
adding needed rights
Modified paths:
  • /trunk/extensions/SemanticWatchlist/SemanticWatchlist.i18n.php (modified) (history)
  • /trunk/extensions/SemanticWatchlist/SemanticWatchlist.php (modified) (history)
  • /trunk/extensions/SemanticWatchlist/SemanticWatchlist.settings.php (modified) (history)
  • /trunk/extensions/SemanticWatchlist/specials/SpecialWatchlistConditions.php (added) (history)

Diff [purge]

Index: trunk/extensions/SemanticWatchlist/specials/SpecialWatchlistConditions.php
@@ -0,0 +1 @@
 2+<?php
Index: trunk/extensions/SemanticWatchlist/SemanticWatchlist.i18n.php
@@ -20,6 +20,8 @@
2121 $messages['en'] = array(
2222 'semanticwatchlist-desc' => 'Semantic Watchlist is an extension that allows specifying groups of semantic properties for one or more categories/namespaces which can then be wacthed for changes.',
2323
 24+ 'right-semanticwatch' => 'Required to use the semantic watchlist.',
 25+ 'right-semanticwatchgroups' => 'Required to modify the semantic watchlist groups via [[Special:WatchlistConditions]].',
2426 );
2527
2628 /** Message documentation (Message documentation)
Index: trunk/extensions/SemanticWatchlist/SemanticWatchlist.settings.php
@@ -5,7 +5,7 @@
66 * More info can be found at http://www.mediawiki.org/wiki/Extension:Semantic_Watchlist#Settings
77 *
88 * NOTICE:
9 - * Changing one of these settings can be done by copieng or cutting it,
 9+ * Changing one of these settings can be done by copying or cutting it,
1010 * and placing it in LocalSettings.php, AFTER the inclusion of this extension.
1111 *
1212 * @file SemanticWatchlist.Settings.php
@@ -19,4 +19,19 @@
2020 die( 'Not an entry point.' );
2121 }
2222
 23+# Users that can use the semantic watchlist.
 24+$wgGroupPermissions['*' ]['semanticwatch'] = false;
 25+$wgGroupPermissions['user' ]['semanticwatch'] = true;
 26+$wgGroupPermissions['autoconfirmed']['semanticwatch'] = true;
 27+$wgGroupPermissions['bot' ]['semanticwatch'] = false;
 28+$wgGroupPermissions['sysop' ]['semanticwatch'] = true;
 29+
 30+# Users that can modify the watchlist groups via Special:WatchlistConditions
 31+$wgGroupPermissions['*' ]['semanticwatchgroups'] = false;
 32+$wgGroupPermissions['user' ]['semanticwatchgroups'] = false;
 33+$wgGroupPermissions['autoconfirmed']['semanticwatchgroups'] = false;
 34+$wgGroupPermissions['bot' ]['semanticwatchgroups'] = false;
 35+$wgGroupPermissions['sysop' ]['semanticwatchgroups'] = true;
 36+
 37+# Enable email notification or not?
2338 $egSWLEnableEmailNotify = true;
Index: trunk/extensions/SemanticWatchlist/SemanticWatchlist.php
@@ -67,6 +67,9 @@
6868
6969 require_once 'SemanticWatchlist.settings.php';
7070
 71+$wgAvailableRights[] = 'semanticwatch';
 72+$wgAvailableRights[] = 'semanticwatchgroups';
 73+
7174 // This overrides the default value for the setting in SMW, as the behaviour it enables is used by this extension.
7275 $smwgCheckChangesBeforeUpdate = true;
7376

Follow-up revisions

RevisionCommit summaryAuthorDate
r87620Followup r87607/r87607: Make description of userright consistent with existin...raymond08:48, 7 May 2011

Status & tagging log