diff options
Diffstat (limited to 'views/default/forms/useradd.php')
-rw-r--r-- | views/default/forms/useradd.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/views/default/forms/useradd.php b/views/default/forms/useradd.php index efb691551..ae0049267 100644 --- a/views/default/forms/useradd.php +++ b/views/default/forms/useradd.php @@ -7,7 +7,7 @@ */ $admin_option = false; -if ((get_loggedin_user()->isAdmin()) && ($vars['show_admin'])) { +if ((elgg_get_logged_in_user_entity()->isAdmin()) && ($vars['show_admin'])) { $admin_option = true; } |