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.
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.
| Subject | Author | Repo | Branch | Lines +/- | |
|---|---|---|---|---|---|
| Make User implement Authority | Ppchelko | mediawiki/core | master | +169 -87 | |
| Don't pass empty permissions to Authority::isAllowed | Ppchelko | mediawiki/extensions/Gadgets | master | +4 -1 |
| Status | Subtype | Assigned | Task | ||
|---|---|---|---|---|---|
| Open | None | T218674 User::getRights() applies session rights restrictions to non-session users | |||
| Resolved | None | T180888 All permission checks should be able to return a custom error message | |||
| Open | None | T231930 Introduce Authority objects to represent the user performing a given action | |||
| Invalid | None | T262296 Authority [high effort] | |||
| Resolved | • Pchelolo | T261963 Spike to explore Authority concept, implementation, and migration | |||
| Resolved | • Pchelolo | T271459 User should implement Authority |
Change 654926 had a related patch set uploaded (by Ppchelko; owner: Ppchelko):
[mediawiki/core@master] Make User implement Authority
Change 657192 had a related patch set uploaded (by Ppchelko; owner: Ppchelko):
[mediawiki/extensions/Gadgets@master] Don't pass empty permissions to Authority::isAllowed
Change 657192 merged by jenkins-bot:
[mediawiki/extensions/Gadgets@master] Don't pass empty permissions to Authority::isAllowed
Change 654926 merged by jenkins-bot:
[mediawiki/core@master] Make User implement Authority