EBernhardson has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/176011

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(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/LiquidThreads 
refs/changes/11/176011/1

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: newchange
Gerrit-Change-Id: I976746b20723b26280f8d027fc4b7a6fe2ee0979
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/LiquidThreads
Gerrit-Branch: master
Gerrit-Owner: EBernhardson <[email protected]>

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

Reply via email to