jenkins-bot has submitted this change and it was merged. 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 --- M api/ApiQueryAbuseLog.php 1 file changed, 2 insertions(+), 1 deletion(-) Approvals: Anomie: Looks good to me, approved TTO: Looks good to me, but someone else must approve jenkins-bot: Verified 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/204780 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: merged Gerrit-Change-Id: Ife9b715334b4f4b5bcbf066031821c304bc2ce05 Gerrit-PatchSet: 2 Gerrit-Project: mediawiki/extensions/AbuseFilter Gerrit-Branch: master Gerrit-Owner: Alex Monk <kren...@gmail.com> Gerrit-Reviewer: Anomie <bjor...@wikimedia.org> Gerrit-Reviewer: Chad <ch...@wikimedia.org> Gerrit-Reviewer: Jackmcbarn <jackmcb...@gmail.com> Gerrit-Reviewer: Reedy <re...@wikimedia.org> Gerrit-Reviewer: Se4598 <se4...@gmx.de> Gerrit-Reviewer: Steinsplitter <steinsplit...@wikipedia.de> Gerrit-Reviewer: TTO <at.li...@live.com.au> Gerrit-Reviewer: jenkins-bot <> _______________________________________________ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits