Index: trunk/phase3/includes/OutputPage.php |
— | — | @@ -2119,7 +2119,7 @@ |
2120 | 2120 | |
2121 | 2121 | # Don't return to a page the user can't read otherwise |
2122 | 2122 | # we'll end up in a pointless loop |
2123 | | - if ( $displayReturnto && $displayReturnto->userCan( 'read' ) ) { |
| 2123 | + if ( $displayReturnto && $displayReturnto->userCan( 'read', $this->getUser() ) ) { |
2124 | 2124 | $this->returnToMain( null, $displayReturnto ); |
2125 | 2125 | } |
2126 | 2126 | } else { |