$wgAbuseFilterRestrictions setting is used for multiple things withing AbuseFilter. Here are the known things where this flag is being used:
- For actions in $wgAbuseFilterRestrictions you need abusefilter-modify-restricted to edit the filter, abusefilter-modify isn't enough.
- Only actions that are listed in $wgAbuseFilterRestrictions are turned off if the filter reaches certain threshold (af_throttled = true).
- To block actions from global filters here
- To remove disallow if there are more actions and quote from comments in the code, to prevent double warnings here. This is a separate issue that can be evaluated in a different ticket
We need to create new globals to split $wgAbuseFilterRestrictions responsibilities and make all of these new settings easy to modify/configure.