aboutsummaryrefslogtreecommitdiff
path: root/actions/admin
diff options
context:
space:
mode:
authorben <ben@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-08-18 09:34:20 +0000
committerben <ben@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-08-18 09:34:20 +0000
commitbd87ee1abd2aaf9f60061d6f505f64c4f313bf03 (patch)
tree8ff5b0442fd80731f8b8ab122a4ade1a2412e74f /actions/admin
parent14eeaf39e11b5056f3346042949358cf2d198583 (diff)
downloadelgg-bd87ee1abd2aaf9f60061d6f505f64c4f313bf03.tar.gz
elgg-bd87ee1abd2aaf9f60061d6f505f64c4f313bf03.tar.bz2
Banning a user disables their entities
git-svn-id: https://code.elgg.org/elgg/trunk@1998 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'actions/admin')
-rw-r--r--actions/admin/user/ban.php6
1 files changed, 4 insertions, 2 deletions
diff --git a/actions/admin/user/ban.php b/actions/admin/user/ban.php
index bba8205e6..81aba67d1 100644
--- a/actions/admin/user/ban.php
+++ b/actions/admin/user/ban.php
@@ -22,8 +22,10 @@
if ( ($obj instanceof ElggUser) && ($obj->canEdit()))
{
// Now actually disable it
- if ($obj->disable('banned'))
- system_message(elgg_echo('admin:user:ban:yes'));
+ if ($obj->disable('banned')) {
+ disable_entities($obj->guid);
+ system_message(elgg_echo('admin:user:ban:yes'));
+ }
else
register_error(elgg_echo('admin:user:ban:no'));
}