aboutsummaryrefslogtreecommitdiffstats
path: root/include/functions_user.inc.php
diff options
context:
space:
mode:
authorgweltas <gweltas@piwigo.org>2004-12-03 16:30:12 +0000
committergweltas <gweltas@piwigo.org>2004-12-03 16:30:12 +0000
commit6fa03e0cca6855e041de004d49e0dd1b03bd644f (patch)
treeae05c6a88f896de2ab4ffea8d98641f1996e2be3 /include/functions_user.inc.php
parentb35dc19ab6da173cc663e49cb32389d7e6dbfdee (diff)
- User control panel update (user side)
- User control panel update (admin side) - Add of registration link on the main page - Minor bug correction for group management git-svn-id: http://piwigo.org/svn/trunk@631 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to 'include/functions_user.inc.php')
-rw-r--r--include/functions_user.inc.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/functions_user.inc.php b/include/functions_user.inc.php
index 1ac224c31..1581ff28f 100644
--- a/include/functions_user.inc.php
+++ b/include/functions_user.inc.php
@@ -156,13 +156,13 @@ function update_user( $user_id, $mail_address, $status,
return $error;
}
-function check_login_authorization()
+function check_login_authorization($guest_allowed = true)
{
global $user,$lang,$conf,$page;
if ( $user['is_the_guest'])
{
- if ( $conf['access'] == 'restricted' || (isset($page['cat']) && $page['cat'] == 'fav' ) )
+ if ( $conf['access'] == 'restricted' || !$guest_allowed )
{
echo '<div style="text-align:center;">'.$lang['only_members'].'<br />';
echo '<a href="./identification.php">'.$lang['ident_title'].'</a></div>';