aboutsummaryrefslogtreecommitdiffstats
path: root/profile.php
diff options
context:
space:
mode:
Diffstat (limited to 'profile.php')
-rw-r--r--profile.php9
1 files changed, 8 insertions, 1 deletions
diff --git a/profile.php b/profile.php
index a92ee12c3..2aab4c05d 100644
--- a/profile.php
+++ b/profile.php
@@ -32,7 +32,14 @@
define('PHPWG_ROOT_PATH','./');
include_once(PHPWG_ROOT_PATH.'include/common.inc.php');
-check_login_authorization(false);
+
+if ($user['is_the_guest'] and !$guest_allowed)
+{
+ echo '<div style="text-align:center;">'.$lang['only_members'].'<br />';
+ echo '<a href="./identification.php">'.$lang['ident_title'].'</a></div>';
+ exit();
+}
+
$userdata = $user;
//------------------------------------------------------ update & customization