aboutsummaryrefslogtreecommitdiff
path: root/views/default/forms
diff options
context:
space:
mode:
authorcash <cash.costello@gmail.com>2011-09-30 17:22:49 -0400
committercash <cash.costello@gmail.com>2011-09-30 17:22:49 -0400
commitd44a060c8b9dbd94919bcf0edcb4f794da63d094 (patch)
treed08ec68f73f819618ae55bec79c1f330dcd2d5a2 /views/default/forms
parentd50ec282fa3da9947968e959affd48825b2a7bbb (diff)
downloadelgg-d44a060c8b9dbd94919bcf0edcb4f794da63d094.tar.gz
elgg-d44a060c8b9dbd94919bcf0edcb4f794da63d094.tar.bz2
Fixes #3890 removed admin check in useradd form since it is only used by admins
Diffstat (limited to 'views/default/forms')
-rw-r--r--views/default/forms/useradd.php11
1 files 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;
-}
?>
<div>
<label><?php echo elgg_echo('name');?></label><br />
@@ -67,18 +63,15 @@ if ((elgg_get_logged_in_user_entity()->isAdmin()) && ($vars['show_admin'])) {
));
?>
</div>
-
+<div>
<?php
-if ($admin_option) {
- echo "<div>";
echo elgg_view('input/checkboxes', array(
'name' => "admin",
'options' => array(elgg_echo('admin_option') => 1),
'value' => $admin,
));
- echo "</div>";
-}
?>
+</div>
<div class="elgg-foot">
<?php echo elgg_view('input/submit', array('value' => elgg_echo('register'))); ?>