Page MenuHomePhabricator

Hard deprecate Title user permission methods
Closed, ResolvedPublic


Title::quickUserCan, Title::userCan, and Title::getUserPermissionsErrors refer to $wgUser. They were soft deprecated in 1.33, and should be hard deprecated instead of just replacing $wgUser with RequestContext::getMain()->getUser() (it doesn't make sense to deprecate not passing a user, where the entire function is already deprecated)

The first two have the same function name as their replacement, so calls need to be checked manually.

See subtasks for each method: