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
This commit is contained in:
nikrou
2006-08-02 21:19:15 +00:00
parent 3723a95a6c
commit 4a354ba64a

View File

@@ -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');
}