r69836 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r69835‎ | r69836 | r69837 >
Date:19:08, 24 July 2010
Author:reedy
Status:ok
Tags:
Comment:
Add missing global $wgUser
Modified paths:
  • /trunk/phase3/includes/api/ApiQueryWatchlist.php (modified) (history)

Diff [purge]

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

Status & tagging log