From d44a060c8b9dbd94919bcf0edcb4f794da63d094 Mon Sep 17 00:00:00 2001 From: cash Date: Fri, 30 Sep 2011 17:22:49 -0400 Subject: Fixes #3890 removed admin check in useradd form since it is only used by admins --- views/default/forms/useradd.php | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/views/default/forms/useradd.php b/views/default/forms/useradd.php index 66f8846e2..4f337e4e4 100644 --- a/views/default/forms/useradd.php +++ b/views/default/forms/useradd.php @@ -17,10 +17,6 @@ if (elgg_is_sticky_form('useradd')) { } } -$admin_option = false; -if ((elgg_get_logged_in_user_entity()->isAdmin()) && ($vars['show_admin'])) { - $admin_option = true; -} ?>

@@ -67,18 +63,15 @@ if ((elgg_get_logged_in_user_entity()->isAdmin()) && ($vars['show_admin'])) { )); ?>
- +
"; echo elgg_view('input/checkboxes', array( 'name' => "admin", 'options' => array(elgg_echo('admin_option') => 1), 'value' => $admin, )); - echo "
"; -} ?> +
elgg_echo('register'))); ?> -- cgit v1.2.3