From 6b47262a108a0aaf2836443aab63e041c6c1331b Mon Sep 17 00:00:00 2001 From: MGChecker Date: Mon, 2 May 2016 22:45:56 +0200 Subject: [PATCH] Correct error message for missing permission to get patrol information Patrolmarks permission is enough to request patrol information, as it's coded in useRCPatrol() and useNPPatrol(). Change-Id: I4115bdbbcaf6764d71784efe2d8ac63cc77ce770 --- includes/api/ApiQueryRecentChanges.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/includes/api/ApiQueryRecentChanges.php b/includes/api/ApiQueryRecentChanges.php index 74c22144c4..f0fd2f4574 100644 --- a/includes/api/ApiQueryRecentChanges.php +++ b/includes/api/ApiQueryRecentChanges.php @@ -206,7 +206,7 @@ class ApiQueryRecentChanges extends ApiQueryGeneratorBase { ) { if ( !$user->useRCPatrol() && !$user->useNPPatrol() ) { $this->dieUsage( - 'You need the patrol right to request the patrolled flag', + 'You need patrol or patrolmarks permission to request the patrolled flag', 'permissiondenied' ); } @@ -277,7 +277,7 @@ class ApiQueryRecentChanges extends ApiQueryGeneratorBase { if ( $this->fld_patrolled && !$user->useRCPatrol() && !$user->useNPPatrol() ) { $this->dieUsage( - 'You need the patrol right to request the patrolled flag', + 'You need patrol or patrolmarks permission to request the patrolled flag', 'permissiondenied' ); } -- 2.20.1