In order to access protected variables in AbuseFilter, the user has to not only have the right but also check a preference to enable the feature. This was done as a product requirement to keep it in line with how IPs are treated in CheckUser. With the potential of introducing new protected variables, this preference will have to be generalized to no longer specify IPs (see T380920: Remove the AbuseFilter protected variables preference gate).
However, this requirement is a wmf-specific legal requirement and maybe in that case it doesn't belong in the core codebase of AbuseFilter? We should consider if we need to hardcode this preference check (in the hypothetical where a third party wiki is using AbuseFilter, they might not have the same need to check off a ToS agreement).