Page MenuHomePhabricator

User should implement Authority
Closed, ResolvedPublic

Description

User class should implement Authority.

In order to construct WebRequestAuthority we can WebRequest and PermissionManager (or AuthorityFactory) from global state. The Authority methods on User should be marked @unstable for now.

Event Timeline

Change 654926 had a related patch set uploaded (by Ppchelko; owner: Ppchelko):
[mediawiki/core@master] Make User implement Authority

https://gerrit.wikimedia.org/r/654926

Change 657192 had a related patch set uploaded (by Ppchelko; owner: Ppchelko):
[mediawiki/extensions/Gadgets@master] Don't pass empty permissions to Authority::isAllowed

https://gerrit.wikimedia.org/r/657192

Change 657192 merged by jenkins-bot:
[mediawiki/extensions/Gadgets@master] Don't pass empty permissions to Authority::isAllowed

https://gerrit.wikimedia.org/r/657192

Change 654926 merged by jenkins-bot:
[mediawiki/core@master] Make User implement Authority

https://gerrit.wikimedia.org/r/654926