From 4a354ba64aaac44b2af69d2c00436237dc89f22f Mon Sep 17 00:00:00 2001 From: nikrou Date: Wed, 2 Aug 2006 21:19:15 +0000 Subject: fix bug 451: password.php and register.php must be accessible when user is guest even if guest user is not allowed. git-svn-id: http://piwigo.org/svn/trunk@1524 68402e56-0260-453c-a942-63ccdbb3a9ee --- include/user.inc.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'include') diff --git a/include/user.inc.php b/include/user.inc.php index 896a9752d..b6b6d1bcb 100644 --- a/include/user.inc.php +++ b/include/user.inc.php @@ -66,7 +66,9 @@ else } if ($user['is_the_guest'] and !$conf['guest_access'] - and (basename($_SERVER['PHP_SELF'])!='identification.php')) + and (basename($_SERVER['PHP_SELF'])!='identification.php') + and (basename($_SERVER['PHP_SELF'])!='password.php') + and (basename($_SERVER['PHP_SELF'])!='register.php')) { redirect (get_root_url().'identification.php'); } -- cgit v1.2.3