From bd8d61b21308ebeaf865f235844c7ba28f87642e Mon Sep 17 00:00:00 2001 From: Alexandre Emsenhuber Date: Mon, 19 Dec 2011 16:10:06 +0000 Subject: [PATCH] Pass the User object to Title::userCan() --- includes/OutputPage.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/OutputPage.php b/includes/OutputPage.php index 87712fdbff..163f2b1750 100644 --- a/includes/OutputPage.php +++ b/includes/OutputPage.php @@ -2119,7 +2119,7 @@ class OutputPage extends ContextSource { # Don't return to a page the user can't read otherwise # we'll end up in a pointless loop - if ( $displayReturnto && $displayReturnto->userCan( 'read' ) ) { + if ( $displayReturnto && $displayReturnto->userCan( 'read', $this->getUser() ) ) { $this->returnToMain( null, $displayReturnto ); } } else { -- 2.20.1