Index: trunk/extensions/Reviews/specials/SpecialMyReviews.php |
— | — | @@ -21,7 +21,7 @@ |
22 | 22 | * @since 0.1 |
23 | 23 | */ |
24 | 24 | public function __construct() { |
25 | | - parent::__construct( 'MyReviews', 'review' ); |
| 25 | + parent::__construct( 'MyReviews', 'postreview' ); |
26 | 26 | } |
27 | 27 | |
28 | 28 | /** |
Index: trunk/extensions/Reviews/specials/SpecialReviews.php |
— | — | @@ -21,7 +21,7 @@ |
22 | 22 | * @since 0.1 |
23 | 23 | */ |
24 | 24 | public function __construct() { |
25 | | - parent::__construct( 'Reviews', 'review' ); |
| 25 | + parent::__construct( 'Reviews', 'postreview' ); |
26 | 26 | } |
27 | 27 | |
28 | 28 | /** |
Index: trunk/extensions/Reviews/Reviews.i18n.php |
— | — | @@ -28,7 +28,7 @@ |
29 | 29 | 'right-review' => 'Post reviews', |
30 | 30 | |
31 | 31 | 'action-reviewsadmin' => 'manage reviews', |
32 | | - 'action-reviewer' => 'post reviews', |
| 32 | + 'action-postreview' => 'post reviews', |
33 | 33 | |
34 | 34 | // Groups |
35 | 35 | 'group-reviewsadmin' => 'Review admins', |
— | — | @@ -80,6 +80,9 @@ |
81 | 81 | $messages['qqq'] = array( |
82 | 82 | 'reviews-toplink' => 'Text of top link linking to Special:MyReviews', |
83 | 83 | |
| 84 | + 'action-postreview' => '{{doc-action|postreview}}', |
| 85 | + 'action-reviewsadmin' => '{{doc-action|reviewsadmin}}', |
| 86 | + |
84 | 87 | 'reviews-state-new' => 'A state a review can be in', |
85 | 88 | 'reviews-state-flagged' => 'A state a review can be in', |
86 | 89 | 'reviews-state-reviewed' => 'A state a review can be in', |
Index: trunk/extensions/Reviews/api/ApiSubmitReview.php |
— | — | @@ -15,7 +15,7 @@ |
16 | 16 | class ApiSubmitReview extends ApiBase { |
17 | 17 | |
18 | 18 | public function execute() { |
19 | | - if ( !$this->getUser()->isAllowed( 'review' ) || $this->getUser()->isBlocked() ) { |
| 19 | + if ( !$this->getUser()->isAllowed( 'postreview' ) || $this->getUser()->isBlocked() ) { |
20 | 20 | $this->dieUsageMsg( array( 'badaccess-groups' ) ); |
21 | 21 | } |
22 | 22 | |
Index: trunk/extensions/Reviews/Reviews.php |
— | — | @@ -84,7 +84,7 @@ |
85 | 85 | |
86 | 86 | // Rights |
87 | 87 | $wgAvailableRights[] = 'reviewsadmin'; |
88 | | -$wgAvailableRights[] = 'review'; |
| 88 | +$wgAvailableRights[] = 'postreview'; |
89 | 89 | |
90 | 90 | # Users that can manage the reviews. |
91 | 91 | $wgGroupPermissions['*' ]['reviewsadmin'] = false; |
— | — | @@ -95,12 +95,12 @@ |
96 | 96 | $wgGroupPermissions['reviewsadmin' ]['reviewsadmin'] = true; |
97 | 97 | |
98 | 98 | # Users that can post reviews. |
99 | | -$wgGroupPermissions['*' ]['review'] = false; |
100 | | -$wgGroupPermissions['user' ]['review'] = true; |
101 | | -//$wgGroupPermissions['autoconfirmed']['review'] = true; |
102 | | -//$wgGroupPermissions['bot' ]['review'] = false; |
103 | | -$wgGroupPermissions['sysop' ]['review'] = true; |
104 | | -$wgGroupPermissions['reviewer']['review'] = true; |
| 99 | +$wgGroupPermissions['*' ]['postreview'] = false; |
| 100 | +$wgGroupPermissions['user' ]['postreview'] = true; |
| 101 | +//$wgGroupPermissions['autoconfirmed']['postreview'] = true; |
| 102 | +//$wgGroupPermissions['bot' ]['postreview'] = false; |
| 103 | +$wgGroupPermissions['sysop' ]['postreview'] = true; |
| 104 | +$wgGroupPermissions['reviewer']['postreview'] = true; |
105 | 105 | |
106 | 106 | |
107 | 107 | // Resource loader modules |
Index: trunk/extensions/Reviews/Reviews.hooks.php |
— | — | @@ -134,7 +134,7 @@ |
135 | 135 | public static function onBeforePageDisplay( OutputPage &$out, Skin &$skin ) { |
136 | 136 | /* User */ $user = $skin->getUser(); |
137 | 137 | |
138 | | - if ( $user->isLoggedIn() && $user->isAllowed( 'review' ) && $user->getOption( 'reviews_showcontrol' ) |
| 138 | + if ( $user->isLoggedIn() && $user->isAllowed( 'postreview' ) && $user->getOption( 'reviews_showcontrol' ) |
139 | 139 | && $out->isArticle() |
140 | 140 | && $skin->getRequest()->getText( 'action' ) !== 'edit' ) { |
141 | 141 | |