r106662 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r106661‎ | r106662 | r106663 >
Date:16:10, 19 December 2011
Author:ialex
Status:ok
Tags:
Comment:
Pass the User object to Title::userCan()
Modified paths:
  • /trunk/phase3/includes/OutputPage.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/OutputPage.php
@@ -2119,7 +2119,7 @@
21202120
21212121 # Don't return to a page the user can't read otherwise
21222122 # we'll end up in a pointless loop
2123 - if ( $displayReturnto && $displayReturnto->userCan( 'read' ) ) {
 2123+ if ( $displayReturnto && $displayReturnto->userCan( 'read', $this->getUser() ) ) {
21242124 $this->returnToMain( null, $displayReturnto );
21252125 }
21262126 } else {

Status & tagging log