Index: branches/wmf/1.18wmf1/extensions/MoodBar/ApiFeedbackDashboardResponse.php |
— | — | @@ -8,6 +8,9 @@ |
9 | 9 | if ( $wgUser->isAnon() ) { |
10 | 10 | $this->dieUsage( "You don't have permission to do that", 'permission-denied' ); |
11 | 11 | } |
| 12 | + if ( $wgUser->isBlocked( false ) ) { |
| 13 | + $this->dieUsageMsg( array( 'blockedtext' ) ); |
| 14 | + } |
12 | 15 | |
13 | 16 | $params = $this->extractRequestParams(); |
14 | 17 | |
Index: branches/wmf/1.18wmf1/extensions/MoodBar/ApiMoodBar.php |
— | — | @@ -2,6 +2,12 @@ |
3 | 3 | |
4 | 4 | class ApiMoodBar extends ApiBase { |
5 | 5 | public function execute() { |
| 6 | + global $wgUser; |
| 7 | + |
| 8 | + if ( $wgUser->isBlocked( false ) ) { |
| 9 | + $this->dieUsageMsg( array( 'blockedtext' ) ); |
| 10 | + } |
| 11 | + |
6 | 12 | $params = $this->extractRequestParams(); |
7 | 13 | |
8 | 14 | $params['page'] = Title::newFromText( $params['page'] ); |