mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/AbuseFilter.git
synced 2024-11-15 02:03:53 +00:00
87713008d5
There are lots of calls to $user->isAllowed which could be simplified using available accessors like canEdit(). So simplify those calls and avoid duplication. Note that using canEdit also fixes a bug which affected blocked users: we used to show e.g. the import link, and not to display as disabled several text fields, while blocked users cannot actually edit filters. Depends-On: I22743557e162fd23b3b4e52951a649d8c21109c8 Change-Id: I62779e940949ef49018a9c6d901bb6e10aa81da8 |
||
---|---|---|
.. | ||
ApiAbuseFilterCheckMatch.php | ||
ApiAbuseFilterCheckSyntax.php | ||
ApiAbuseFilterEvalExpression.php | ||
ApiAbuseFilterUnblockAutopromote.php | ||
ApiAbuseLogPrivateDetails.php | ||
ApiQueryAbuseFilters.php | ||
ApiQueryAbuseLog.php |