Page MenuHomePhabricator

PermissionsError should be instantiatable with PermissionStatus returned by Authority
Open, HighPublic

Description

PermissionError constructor now takes an array of permission errors. Instead it should be able to take the PermissionStatus from Authority directly.

Might want to base it on https://gerrit.wikimedia.org/r/c/mediawiki/core/+/666239/4/includes/Permissions/PermissionStatus.php for PermissionStatus::toLegacyErrorArray

Event Timeline

Pchelolo created this task.Jan 8 2021, 4:43 AM
Restricted Application added a subscriber: Aklapper. · View Herald TranscriptJan 8 2021, 4:43 AM
Pchelolo renamed this task from PermissionError should be instantiatable with StatusValue returned by Authority to PermissionError should be instantiatable with PermissionStatus returned by Authority.Jan 14 2021, 8:11 PM
Pchelolo renamed this task from PermissionError should be instantiatable with PermissionStatus returned by Authority to PermissionsError should be instantiatable with PermissionStatus returned by Authority.
Pchelolo assigned this task to Peter.ovchyn.
Pchelolo triaged this task as Low priority.Jan 19 2021, 6:28 PM
Pchelolo removed Peter.ovchyn as the assignee of this task.Tue, Feb 23, 3:42 PM
Pchelolo raised the priority of this task from Low to High.
Pchelolo added a subscriber: Peter.ovchyn.

We need this to convert special pages to Authority.

Pchelolo updated the task description. (Show Details)