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