T279556 introduces infrastructure for making partial blocks against actions.
It should be possible to do this via the API as well as via the SpecialPage. Handling in the SpecialPage is introduced in the original patch; this task is for the API.
What needs to be done?
- ApiBlock should recognise a new parameter actionrestrictions in addition to the existing pagerestrictions and namespacerestrictions
- Allowed values should be the values returned by the BlockActionInfo service
- Action restrictions should be added into the $restrictions array passed to the BlockUser object.