From: MGChecker Date: Mon, 2 May 2016 20:45:56 +0000 (+0200) Subject: Correct error message for missing permission to get patrol information X-Git-Tag: 1.31.0-rc.0~7111^2 X-Git-Url: http://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/operations/recherche.php?a=commitdiff_plain;h=6b47262a108a0aaf2836443aab63e041c6c1331b;p=lhc%2Fweb%2Fwiklou.git 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 --- 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' ); }