From ce2deb32e1848c511f64d9b33469f1444ab3dd65 Mon Sep 17 00:00:00 2001 From: Cris Date: Thu, 18 Feb 2021 09:32:46 +0100 Subject: [PATCH] Deleted testuser Signed-off-by: cris-technikum --- application/helpers/hlp_authentication_helper.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/application/helpers/hlp_authentication_helper.php b/application/helpers/hlp_authentication_helper.php index 710f15c24..459c7fb80 100644 --- a/application/helpers/hlp_authentication_helper.php +++ b/application/helpers/hlp_authentication_helper.php @@ -30,7 +30,7 @@ function getAuthPersonId() function getAuthUID() { $ci =& get_instance(); // get CI instance -return 'martinek'; + return isLogged() ? ($ci->authlib->getAuthObj())->{AuthLib::AO_USERNAME} : null; }