aboutsummaryrefslogtreecommitdiff
path: root/actions/user/default_access.php
diff options
context:
space:
mode:
Diffstat (limited to 'actions/user/default_access.php')
-rw-r--r--actions/user/default_access.php3
1 files changed, 1 insertions, 2 deletions
diff --git a/actions/user/default_access.php b/actions/user/default_access.php
index ee8fb9efa..0aacf209c 100644
--- a/actions/user/default_access.php
+++ b/actions/user/default_access.php
@@ -15,10 +15,9 @@ if ($CONFIG->allow_user_default_access) {
$default_access = get_input('default_access');
$user_id = get_input('guid');
- $user = "";
if (!$user_id) {
- $user = $_SESSION['user'];
+ $user = get_loggedin_user();
} else {
$user = get_entity($user_id);
}