aboutsummaryrefslogtreecommitdiff
path: root/mod/profile/views/default
diff options
context:
space:
mode:
authormarcus <marcus@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-06-19 11:08:20 +0000
committermarcus <marcus@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-06-19 11:08:20 +0000
commit5893eaf6588ce7b6823fa78f54c0042983389162 (patch)
tree1970cc1b72c1b3a527a56805133e30786f83b39f /mod/profile/views/default
parent4e08ff9149c717f18ee7285b0508e8a1fc50503b (diff)
downloadelgg-5893eaf6588ce7b6823fa78f54c0042983389162.tar.gz
elgg-5893eaf6588ce7b6823fa78f54c0042983389162.tar.bz2
Fixes #56
git-svn-id: https://code.elgg.org/elgg/trunk@991 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'mod/profile/views/default')
-rw-r--r--mod/profile/views/default/profile/userdetails.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/mod/profile/views/default/profile/userdetails.php b/mod/profile/views/default/profile/userdetails.php
index d3e41f32c..c3c6e9de5 100644
--- a/mod/profile/views/default/profile/userdetails.php
+++ b/mod/profile/views/default/profile/userdetails.php
@@ -82,6 +82,8 @@
// TODO: Add admin console options here
if (isadminloggedin())
{
+ if ($_SESSION['id']!=$vars['entity']->guid)
+ {
?>
<p>
<a href="<?php echo $vars['url']; ?>actions/admin/user/ban?guid=<?php echo $vars['entity']->guid; ?>"><?php echo elgg_echo("ban"); ?></a>
@@ -90,6 +92,7 @@
<a href="<?php echo $vars['url']; ?>actions/admin/user/delete?guid=<?php echo $vars['entity']->guid; ?>"><?php echo elgg_echo("delete"); ?></a>
</p>
<?php
+ }
}
}