Page MenuHomePhabricator

User::isAllowed() has misleading parameter name
Closed, DuplicatePublic

Description

Problem
Despite the parameter name $action, User::isAllowed() accepts a permission, not an action (on a title).

Solution
Rename $action to something more appropriate ($permission or $right?)

Event Timeline

dbarratt created this task.Dec 19 2018, 9:18 PM
Restricted Application added a subscriber: Aklapper. · View Herald TranscriptDec 19 2018, 9:18 PM
Tgr added a subscriber: Tgr.Jan 7 2019, 5:26 AM

Sort of a duplicate of T212345 now?