mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/AbuseFilter.git
synced 2024-11-15 18:19:38 +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 |
||
---|---|---|
.. | ||
AbuseFilterView.php | ||
AbuseFilterViewDiff.php | ||
AbuseFilterViewEdit.php | ||
AbuseFilterViewExamine.php | ||
AbuseFilterViewHistory.php | ||
AbuseFilterViewImport.php | ||
AbuseFilterViewList.php | ||
AbuseFilterViewRevert.php | ||
AbuseFilterViewTestBatch.php | ||
AbuseFilterViewTools.php |