Last modified: 2012-02-08 01:02:49 UTC
Created attachment 9770 [details] Proposed patch Users who do not have abusefilter-modify-restricted can remove all the restricted actions from a filter, and then they'll be able to modify it. The code only checks if the new version that's about to be saved has restricted actions, which prevents unprivileged users from adding them, but not removing them. I've attached a patch that also checks if the previous version of the filter had restricted actions.
Looks okay to me, still need to test/apply it.
Applied in r110906, with some minor style changes. Thanks for submitting this patch. Marking RESOLVED FIXED.