aboutsummaryrefslogtreecommitdiff
path: root/views/default/account/forms/useradd.php
diff options
context:
space:
mode:
Diffstat (limited to 'views/default/account/forms/useradd.php')
-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 734854d08..cf0dcd7ca 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']->admin) && ($vars['show_admin'])) {
+if (($_SESSION['user']->isAdmin()) && ($vars['show_admin'])) {
$admin_option = true;
}