Alex Monk has uploaded a new change for review. https://gerrit.wikimedia.org/r/205295
Change subject: Use same getUserPermissionsErrors check in ApiQueryAbuseLog as SpecialAbuseLog ...................................................................... Use same getUserPermissionsErrors check in ApiQueryAbuseLog as SpecialAbuseLog Due to I6f33a2ea the title we get in the API will trigger that ns-specialprotected error now. Bug: T96277 Change-Id: Ife9b715334b4f4b5bcbf066031821c304bc2ce05 (cherry picked from commit 9da34b9b091522761d8ba64f2de58bf3d004639f) --- M api/ApiQueryAbuseLog.php 1 file changed, 2 insertions(+), 1 deletion(-) git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/AbuseFilter refs/changes/95/205295/1 diff --git a/api/ApiQueryAbuseLog.php b/api/ApiQueryAbuseLog.php index ab9b773..0135348 100644 --- a/api/ApiQueryAbuseLog.php +++ b/api/ApiQueryAbuseLog.php @@ -36,7 +36,8 @@ public function execute() { $user = $this->getUser(); - $errors = $this->getTitle()->getUserPermissionsErrors( 'abusefilter-log', $user ); + $errors = $this->getTitle()->getUserPermissionsErrors( + 'abusefilter-log', $user, true, array( 'ns-specialprotected' ) ); if ( count( $errors ) ) { $this->dieUsageMsg( $errors[0] ); return; -- To view, visit https://gerrit.wikimedia.org/r/205295 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: newchange Gerrit-Change-Id: Ife9b715334b4f4b5bcbf066031821c304bc2ce05 Gerrit-PatchSet: 1 Gerrit-Project: mediawiki/extensions/AbuseFilter Gerrit-Branch: wmf/1.26wmf1 Gerrit-Owner: Alex Monk <kren...@gmail.com> _______________________________________________ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits