jenkins-bot has submitted this change and it was merged.

Change subject: Pass the correct user to Title::quickUserCan
......................................................................


Pass the correct user to Title::quickUserCan

Change-Id: I976746b20723b26280f8d027fc4b7a6fe2ee0979
---
M classes/Hooks.php
1 file changed, 1 insertion(+), 1 deletion(-)

Approvals:
  Werdna: Looks good to me, approved
  jenkins-bot: Verified



diff --git a/classes/Hooks.php b/classes/Hooks.php
index 41adf08..b47d3f3 100644
--- a/classes/Hooks.php
+++ b/classes/Hooks.php
@@ -879,7 +879,7 @@
 
                $talkpage = $thread->article();
 
-               $canRead = $talkpage->getTitle()->quickUserCan( 'read' );
+               $canRead = $talkpage->getTitle()->quickUserCan( 'read', $user );
 
                if ( $canRead ) {
                        return true;

-- 
To view, visit https://gerrit.wikimedia.org/r/176011
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: merged
Gerrit-Change-Id: I976746b20723b26280f8d027fc4b7a6fe2ee0979
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/LiquidThreads
Gerrit-Branch: master
Gerrit-Owner: EBernhardson <[email protected]>
Gerrit-Reviewer: Werdna <[email protected]>
Gerrit-Reviewer: jenkins-bot <>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to