Index: trunk/phase3/includes/api/ApiQueryWatchlist.php |
— | — | @@ -142,6 +142,7 @@ |
143 | 143 | |
144 | 144 | // Check permissions. |
145 | 145 | if ( isset( $show['patrolled'] ) || isset( $show['!patrolled'] ) ) { |
| 146 | + global $wgUser; |
146 | 147 | if ( !$wgUser->useRCPatrol() && !$wgUser->useNPPatrol() ) { |
147 | 148 | $this->dieUsage( 'You need the patrol right to request the patrolled flag', 'permissiondenied' ); |
148 | 149 | } |