aboutsummaryrefslogtreecommitdiffstats
path: root/includes/api/ApiQueryBase.php
diff options
context:
space:
mode:
authorHuji <huji.huji@gmail.com>2021-03-23 11:42:30 -0400
committerHuji <huji.huji@gmail.com>2021-03-23 11:42:30 -0400
commit6282151f0241d75033c940fde2b2cdfdf8fe97f0 (patch)
tree1ff4387212b2827417dba66e5dcef89f40309091 /includes/api/ApiQueryBase.php
parent7987794d0f02da9edd2d488dd4ac1f6eb3017cd1 (diff)
downloadmediawikicore-6282151f0241d75033c940fde2b2cdfdf8fe97f0.tar.gz
mediawikicore-6282151f0241d75033c940fde2b2cdfdf8fe97f0.zip
Users with detelerevision right should see private bits of history
The web interface of MediaWiki honors this, but the API interface does not. This patch makes them consistent. Bug: T277358 Change-Id: Ia51e8c6a09a999d3fc6b29eea56a682fa8229ffd
Diffstat (limited to 'includes/api/ApiQueryBase.php')
-rw-r--r--includes/api/ApiQueryBase.php1
1 files changed, 1 insertions, 0 deletions
diff --git a/includes/api/ApiQueryBase.php b/includes/api/ApiQueryBase.php
index 0604df8c1633..8d717aff169c 100644
--- a/includes/api/ApiQueryBase.php
+++ b/includes/api/ApiQueryBase.php
@@ -608,6 +608,7 @@ abstract class ApiQueryBase extends ApiBase {
return $this->getAuthority()->isAllowedAny(
'deletedhistory',
'deletedtext',
+ 'deleterevision',
'suppressrevision',
'viewsuppressed'
);