From: Rotem Liss Date: Wed, 6 Sep 2006 17:19:43 +0000 (+0000) Subject: (bug 6927) User login requested if not allowed to read X-Git-Tag: 1.31.0-rc.0~55824 X-Git-Url: http://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/operations/?a=commitdiff_plain;h=8b3ab25deacf25bd1dca44297bd3ef19a00ef51e;p=lhc%2Fweb%2Fwiklou.git (bug 6927) User login requested if not allowed to read --- 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' ) );