diff options
author | marcus <marcus@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2008-08-13 15:52:18 +0000 |
---|---|---|
committer | marcus <marcus@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2008-08-13 15:52:18 +0000 |
commit | b0b84c911c200fd355b55e8b701a57baa8e62477 (patch) | |
tree | f5db015da4a56d6a6ae82c8cb5d909efd33636a3 /mod | |
parent | 4a92ecbc2d4ece4e2c2e5d0b7a7f8b2a6190a285 (diff) | |
download | elgg-b0b84c911c200fd355b55e8b701a57baa8e62477.tar.gz elgg-b0b84c911c200fd355b55e8b701a57baa8e62477.tar.bz2 |
Refs #237: Added option, now just needs a search listing banned users.
Depends #243
git-svn-id: https://code.elgg.org/elgg/trunk@1904 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'mod')
-rw-r--r-- | mod/profile/views/default/profile/menu/adminlinks.php | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/mod/profile/views/default/profile/menu/adminlinks.php b/mod/profile/views/default/profile/menu/adminlinks.php index 240c8453b..f59059db8 100644 --- a/mod/profile/views/default/profile/menu/adminlinks.php +++ b/mod/profile/views/default/profile/menu/adminlinks.php @@ -15,9 +15,13 @@ if (isadminloggedin()){ if ($_SESSION['id']!=$vars['entity']->guid){ ?> - <p class="user_menu_admin"> - <a href="<?php echo $vars['url']; ?>actions/admin/user/ban?guid=<?php echo $vars['entity']->guid; ?>"><?php echo elgg_echo("ban"); ?></a> - <a href="<?php echo $vars['url']; ?>actions/admin/user/delete?guid=<?php echo $vars['entity']->guid; ?>"><?php echo elgg_echo("delete"); ?></a> + <p class="user_menu_admin"><?php + if ($vars['entity']->isEnabled()) { + ?><a href="<?php echo $vars['url']; ?>actions/admin/user/ban?guid=<?php echo $vars['entity']->guid; ?>"><?php echo elgg_echo("ban"); ?></a><?php + } else { + ?><a href="<?php echo $vars['url']; ?>actions/admin/user/unban?guid=<?php echo $vars['entity']->guid; ?>"><?php echo elgg_echo("unban"); ?></a><?php + } + ?><a href="<?php echo $vars['url']; ?>actions/admin/user/delete?guid=<?php echo $vars['entity']->guid; ?>"><?php echo elgg_echo("delete"); ?></a> <a href="<?php echo $vars['url']; ?>actions/admin/user/resetpassword?guid=<?php echo $vars['entity']->guid; ?>"><?php echo elgg_echo("resetpassword"); ?></a> <?php if (!$vars['entity']->admin) { ?><a href="<?php echo $vars['url']; ?>actions/admin/user/makeadmin?guid=<?php echo $vars['entity']->guid; ?>"><?php echo elgg_echo("makeadmin"); ?></a> <?php } ?> </p> |