Index: trunk/extensions/SemanticWatchlist/specials/SpecialWatchlistConditions.php |
— | — | @@ -0,0 +1 @@ |
| 2 | +<?php |
Index: trunk/extensions/SemanticWatchlist/SemanticWatchlist.i18n.php |
— | — | @@ -20,6 +20,8 @@ |
21 | 21 | $messages['en'] = array( |
22 | 22 | '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.', |
23 | 23 | |
| 24 | + 'right-semanticwatch' => 'Required to use the semantic watchlist.', |
| 25 | + 'right-semanticwatchgroups' => 'Required to modify the semantic watchlist groups via [[Special:WatchlistConditions]].', |
24 | 26 | ); |
25 | 27 | |
26 | 28 | /** Message documentation (Message documentation) |
Index: trunk/extensions/SemanticWatchlist/SemanticWatchlist.settings.php |
— | — | @@ -5,7 +5,7 @@ |
6 | 6 | * More info can be found at http://www.mediawiki.org/wiki/Extension:Semantic_Watchlist#Settings |
7 | 7 | * |
8 | 8 | * 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, |
10 | 10 | * and placing it in LocalSettings.php, AFTER the inclusion of this extension. |
11 | 11 | * |
12 | 12 | * @file SemanticWatchlist.Settings.php |
— | — | @@ -19,4 +19,19 @@ |
20 | 20 | die( 'Not an entry point.' ); |
21 | 21 | } |
22 | 22 | |
| 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? |
23 | 38 | $egSWLEnableEmailNotify = true; |
Index: trunk/extensions/SemanticWatchlist/SemanticWatchlist.php |
— | — | @@ -67,6 +67,9 @@ |
68 | 68 | |
69 | 69 | require_once 'SemanticWatchlist.settings.php'; |
70 | 70 | |
| 71 | +$wgAvailableRights[] = 'semanticwatch'; |
| 72 | +$wgAvailableRights[] = 'semanticwatchgroups'; |
| 73 | + |
71 | 74 | // This overrides the default value for the setting in SMW, as the behaviour it enables is used by this extension. |
72 | 75 | $smwgCheckChangesBeforeUpdate = true; |
73 | 76 | |