From 8b3ab25deacf25bd1dca44297bd3ef19a00ef51e Mon Sep 17 00:00:00 2001 From: Rotem Liss Date: Wed, 6 Sep 2006 17:19:43 +0000 Subject: [PATCH] (bug 6927) User login requested if not allowed to read --- includes/OutputPage.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/includes/OutputPage.php b/includes/OutputPage.php index 3dafa2df2c..0d55c2e096 100644 --- a/includes/OutputPage.php +++ b/includes/OutputPage.php @@ -769,6 +769,12 @@ class OutputPage { */ function loginToUse() { global $wgUser, $wgTitle, $wgContLang; + + if( $wgUser->isLoggedIn() ) { + $this->permissionRequired( 'read' ); + return; + } + $skin = $wgUser->getSkin(); $this->setPageTitle( wfMsg( 'loginreqtitle' ) ); -- 2.20.1