mediawiki-extensions-AbuseF.../includes/Filter
STran bf28dbce0e Allow variables to be restricted by user right
Some exposed variables (eg. `user_ip`) used in filters are sensitive
and need to only be available to restricted groups of users.

Back-end changes:
- Add `AbuseFilterProtectedVariables` which defines what variables are
  protected by the new right `abusefilter-access-protected-vars`
- Add the concept of a `protected` variable, the use of which will
  denote the entire filter as protected via a flag on `af_hidden`

New UX features:
- Display changes to the protected status of filters on history and diff
  pages
- Check for protected variables and the right to see them in filter
  validation and don't allow a filter to be saved if it uses a variable
  that the user doesn't have access to
- Check for the right to view protected variables before allowing access
  and edits to existing filters that use them

Bug: T364465
Bug: T363906
Change-Id: I828bbb4015e87040f69a8e10c7888273c4f24dd3
2024-06-04 06:54:53 -07:00
..
AbstractFilter.php Allow variables to be restricted by user right 2024-06-04 06:54:53 -07:00
ClosestFilterVersionNotFoundException.php Use Filter objects in ViewDiff 2021-01-17 00:47:33 +00:00
ExistingFilter.php Introduce subclasses of Filter with specific use cases 2021-01-17 00:47:29 +00:00
Filter.php Introduce subclasses of Filter with specific use cases 2021-01-17 00:47:29 +00:00
FilterNotFoundException.php Adjust code coverage 2020-11-19 22:40:26 +00:00
FilterVersionNotFoundException.php Adjust code coverage 2020-11-19 22:40:26 +00:00
Flags.php Allow variables to be restricted by user right 2024-06-04 06:54:53 -07:00
HistoryFilter.php build: Updating dependencies 2021-07-21 18:51:18 +00:00
LastEditInfo.php Add value objects to represent filters 2020-11-04 12:56:14 +01:00
MutableFilter.php Allow variables to be restricted by user right 2024-06-04 06:54:53 -07:00
Specs.php Add value objects to represent filters 2020-11-04 12:56:14 +01:00