Add error message for unprivileged access of filter history

Attempting to access a diff in the history of a protected filter when
the user doesn't have the right to view protected variables results
in the 'abusefilter-history-error-protected' error and requires copy.

- Add copy for the user-facing 'abusefilter-history-error-protected'
  error

Bug: T364465
Change-Id: I0e9afae90c43bd3f792f1330ea865c0d56a023d1
This commit is contained in:
STran 2024-06-05 06:22:10 -07:00
parent e126601788
commit 5da20292ea
2 changed files with 2 additions and 0 deletions

View file

@ -462,6 +462,7 @@
"abusefilter-history-select-submit": "Refine",
"abusefilter-history-diff": "Changes",
"abusefilter-history-error-hidden": "The filter you requested is hidden, and you cannot view its history.",
"abusefilter-history-error-protected": "The filter you requested uses protected variables, and you cannot view its history.",
"abusefilter-exception-unexpectedatend": "Unexpected \"$2\" at character $1.",
"abusefilter-exception-expectednotfound": "Expected a $2 at character $1, not found (found $3 $4 instead).",
"abusefilter-exception-unrecognisedkeyword": "Unrecognized keyword $2 at character $1.",

View file

@ -507,6 +507,7 @@
"abusefilter-history-select-submit": "Used as submit button on [[Special:AbuseFilter/history]]",
"abusefilter-history-diff": "{{Identical|Change}}",
"abusefilter-history-error-hidden": "Error message shown to user if the filter they are trying to view is hidden and they do not have permission to view it.",
"abusefilter-history-error-protected": "Error message shown to user if the filter they are trying to view uses protected variables and they do not have permission to view it.",
"abusefilter-exception-unexpectedatend": "Error message from the abuse filter parser.\nParameters:\n* $1 - Position in the string\n* $2 - Unexpected code, i.e. <code>else, then, end, :, '</code>",
"abusefilter-exception-expectednotfound": "Error message from the abuse filter parser.\nParameters:\n* $1 - Position in the string\n* $2 - Expected code, i.e. <code>else, then, end, :, '</code>\n* $3 - Type of the found code\n* $4 - Value of the type",
"abusefilter-exception-unrecognisedkeyword": "Error message from the abuse filter parser.\nParameters:\n* $1 - Position in the string\n* $2 - Unrecognized keyword",