From: cash Date: Fri, 30 Sep 2011 21:22:49 +0000 (-0400) Subject: Fixes #3890 removed admin check in useradd form since it is only used by admins X-Git-Url: https://gitweb.fluxo.info/?a=commitdiff_plain;h=d44a060c8b9dbd94919bcf0edcb4f794da63d094;p=lorea%2Felgg.git Fixes #3890 removed admin check in useradd form since it is only used by admins --- 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'))); ?>