diff options
-rw-r--r-- | actions/admin/user/ban.php | 6 |
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')); } |