API: Migrate Title::userCan() calls to PermissionManager
authorMáté Szabó <mszabo@wikia-inc.com>
Sat, 18 May 2019 16:58:24 +0000 (18:58 +0200)
committerMáté Szabó <mszabo@wikia-inc.com>
Thu, 30 May 2019 18:23:53 +0000 (20:23 +0200)
commita88f1d6b58613cbfa5c24c97887197a41ce66908
tree2f231e287e1dcd235b18582adae4ee3ad19cbe9a
parentceb1cd276fd6b46bf063b30232dd54af2c613b01
API: Migrate Title::userCan() calls to PermissionManager

T208768 introduced the PermissionManager service that can now be used
for page specific permission checks. This change replaces calls to
Title::userCan() with the new service in API classes.

Bug: T220191
Change-Id: I768d07a520ca6473a4eefb88c9f587657bc74357
includes/api/ApiBase.php
includes/api/ApiFeedContributions.php
includes/api/ApiQuery.php
includes/api/ApiQueryInfo.php
includes/api/ApiQueryRevisions.php
includes/api/ApiUndelete.php
tests/phpunit/includes/api/query/ApiQueryTest.php