aboutsummaryrefslogtreecommitdiff
path: root/mod/profile
diff options
context:
space:
mode:
Diffstat (limited to 'mod/profile')
-rw-r--r--mod/profile/views/default/profile/userdetails.php13
1 files changed, 13 insertions, 0 deletions
diff --git a/mod/profile/views/default/profile/userdetails.php b/mod/profile/views/default/profile/userdetails.php
index c405e78a9..a2918b2a3 100644
--- a/mod/profile/views/default/profile/userdetails.php
+++ b/mod/profile/views/default/profile/userdetails.php
@@ -73,6 +73,19 @@
</p>
<?php
+
+ // TODO: Add admin console options here
+ if (isadminloggedin())
+ {
+?>
+ <p>
+ <a href="<?php echo $vars['url']; ?>actions/admin/user/ban?guid=<?php echo $vars['entity']->guid; ?> ?>"><?php echo elgg_echo("ban"); ?></a>
+ </p>
+ <p>
+ <a href="<?php echo $vars['url']; ?>actions/admin/user/delete?guid=<?php echo $vars['entity']->guid; ?> ?>"><?php echo elgg_echo("delete"); ?></a>
+ </p>
+<?php
+ }
}
?> \ No newline at end of file