aboutsummaryrefslogtreecommitdiff
path: root/views/default/account/forms
diff options
context:
space:
mode:
Diffstat (limited to 'views/default/account/forms')
-rw-r--r--views/default/account/forms/useradd.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/views/default/account/forms/useradd.php b/views/default/account/forms/useradd.php
index 11323ab14..7794e3b93 100644
--- a/views/default/account/forms/useradd.php
+++ b/views/default/account/forms/useradd.php
@@ -9,7 +9,7 @@
*/
$admin_option = false;
-if (($_SESSION['user']->isAdmin()) && ($vars['show_admin'])) {
+if ((get_loggedin_user()->isAdmin()) && ($vars['show_admin'])) {
$admin_option = true;
}