action=userrights: give error when user is not allowed to change userrights
Open, LowPublic

Description

At the moment the action=userrights modules makes nothing, when the user is not allow to change any userrights or one of the specified userrights. It is better to get a api error in this case.

Thanks.

You can call UserrightsPage::userCanChangeRights to check if the user can change any userrights.


Version: 1.20.x
Severity: normal

Details

Reference
bz33732
bzimport raised the priority of this task from to Low.
bzimport set Reference to bz33732.
bzimport added a subscriber: Unknown Object (MLST).
Anomie moved this task from Unsorted to Needs Code on the MediaWiki-API board.Feb 20 2015, 4:51 PM