diff options
Diffstat (limited to 'actions/admin/user/ban.php')
-rw-r--r-- | actions/admin/user/ban.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/actions/admin/user/ban.php b/actions/admin/user/ban.php index 81aba67d1..d64ae28a5 100644 --- a/actions/admin/user/ban.php +++ b/actions/admin/user/ban.php @@ -20,10 +20,10 @@ $obj = get_entity($guid); if ( ($obj instanceof ElggUser) && ($obj->canEdit())) - { + {
+ disable_entities($obj->guid); // Now actually disable it if ($obj->disable('banned')) {
- disable_entities($obj->guid); system_message(elgg_echo('admin:user:ban:yes'));
} else |