aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authornikrou <nikrou@piwigo.org>2006-08-02 21:19:15 +0000
committernikrou <nikrou@piwigo.org>2006-08-02 21:19:15 +0000
commit4a354ba64aaac44b2af69d2c00436237dc89f22f (patch)
tree0053b91109084fa8709f84bc270ec352d06c6a2c /include
parent3723a95a6c4afdb3e419a25f3b286d08731ecd4e (diff)
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
Diffstat (limited to '')
-rw-r--r--include/user.inc.php4
1 files changed, 3 insertions, 1 deletions
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');
}