Page MenuHomePhabricator

All permission checks should be able to return a custom error message
Open, Needs TriagePublic

Description

Many permission checks only return a boolean (like User::isAllowed) or the permission error they return is hard to customize (like Title::getPermissionError which will just tell which user groups would have the required permission). This is inadequate in scenarios where permissions are restricted unexpectedly (e.g. because the user is blocked, because their account security is wanting, because the system detected something suspicious...).

All permission checks should be able to return a Message. All hooks that interfere with perimission checks (UserGetRights etc) should be able to manipulate that message. All callers to those methods should display those messages if they receive them.

Related Objects

StatusSubtypeAssignedTask
OpenNone
OpenNone
Resolved Pchelolo
Resolved Pchelolo
Resolved Pchelolo
Resolved Pchelolo
Resolved Pchelolo
ResolvedCCicalese_WMF
OpenNone
OpenNone
OpenNone
OpenNone
DuplicateNone
OpenNone
Resolved Pchelolo
ResolvedCCicalese_WMF
OpenNone
OpenNone
ResolvedNone
Resolveddaniel
OpenNone
Resolved Pchelolo
Resolved Pchelolo
ResolvedNone
OpenNone
ResolvedCCicalese_WMF
Resolveddaniel

Event Timeline

daniel subscribed.

The new Authority interface allows messages to be returned from all methods that check permissions. That resolves half of this task - the other half would be to use this information in more places.

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy