aboutsummaryrefslogtreecommitdiff
path: root/mod/profile/views/default/profile/menu/actions.php
diff options
context:
space:
mode:
Diffstat (limited to 'mod/profile/views/default/profile/menu/actions.php')
-rw-r--r--mod/profile/views/default/profile/menu/actions.php19
1 files changed, 18 insertions, 1 deletions
diff --git a/mod/profile/views/default/profile/menu/actions.php b/mod/profile/views/default/profile/menu/actions.php
index f69ad1316..c2b4112d4 100644
--- a/mod/profile/views/default/profile/menu/actions.php
+++ b/mod/profile/views/default/profile/menu/actions.php
@@ -21,5 +21,22 @@
}
}
}
-
+
+ if (isadminloggedin()){
+ if ($_SESSION['user']->getGUID() != $vars['entity']->guid){
+?>
+
+ <p class="user_menu_banuser"><a href="<?php echo $vars['url']; ?>actions/admin/user/ban?guid=<?php echo $vars['entity']->guid; ?>"><?php echo elgg_echo("ban"); ?></a></p>
+
+ <p class="user_menu_delete"><a href="<?php echo $vars['url']; ?>actions/admin/user/delete?guid=<?php echo $vars['entity']->guid; ?>"><?php echo elgg_echo("delete"); ?></a></p>
+
+ <p class="user_menu_resetpassword"><a href="<?php echo $vars['url']; ?>actions/admin/user/resetpassword?guid=<?php echo $vars['entity']->guid; ?>"><?php echo elgg_echo("resetpassword"); ?></a></p>
+
+ <?php if (!$vars['entity']->admin) { ?>
+ <p class="user_menu_makeadmin"><a href="<?php echo $vars['url']; ?>actions/admin/user/makeadmin?guid=<?php echo $vars['entity']->guid; ?>"><?php echo elgg_echo("makeadmin"); ?></a></p>
+ <?php } ?>
+
+<?php
+ }
+ }
?> \ No newline at end of file