Commit graph

3 commits

Author SHA1 Message Date
Cindy Cicalese
f6e1891c6f Use Authority and GroupPermissionLookup in Action API
Replaces calls directly to PermissionManager with calls to
the Authority object available from Context or the
GroupPermissionLookup service.

This patch does not address use of PermissionManager for
blocks.

Deprecations:
- ApiBase::checkUserRightsAny deprecated passing optional
User parameter
- ApiBase::checkTitleUserPermissions deprecated passing
LinkTarget as first parameter, takes PageIdentity instead

Bug: T271462
Bug: T271854
Change-Id: I5d7cac1c28a37e074750c46cda03283980a07fca
2021-02-23 14:31:14 +00:00
DannyS712
50a392b232 Inject UserCache into ApiUnblock
Bug: T248686
Bug: T259960
Change-Id: Ifa6ec8636ca8f15c898576ab7fcebda08357f0d0
2020-11-19 18:46:09 +00:00
DannyS712
d094900422 Add pure unit tests for ApiUnblock
Bug: T248686
Change-Id: I4de6a01014288973b69c53d236dbf1416dcf66fa
2020-11-19 17:55:42 +00:00