mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/AbuseFilter.git
synced 2024-11-15 02:03:53 +00:00
2a0246ddb5
In both SpecialAbuseLog and ApiQueryAbuseLog, we use Title::getUserPermissionsErrors to check if the user is allowed to perform 'abusefilter-log' on the API page... However, this is a completely redundant check (which is also pretty expensive and queries the master): for the SpecialPage, we can specify the required right in the constructor and use checkPermissions, and for the API we can simply use checkUserRightsAny. If I'm not mistaken, there's no benefit in using getUserPermissionsErrors. Change-Id: I4c4dbace67b24cc1f45e50ab1c0d251522935513 |
||
---|---|---|
.. | ||
ApiAbuseFilterCheckMatch.php | ||
ApiAbuseFilterCheckSyntax.php | ||
ApiAbuseFilterEvalExpression.php | ||
ApiAbuseFilterUnblockAutopromote.php | ||
ApiQueryAbuseFilters.php | ||
ApiQueryAbuseLog.php |