From e90692bc720cf4c520ee36c603395cf1e1b80b45 Mon Sep 17 00:00:00 2001 From: marcus Date: Fri, 9 Jan 2009 14:21:48 +0000 Subject: Closes #668: Banning now works through a flag in the users_entity table. Database upgrade required. * Added ElggUser::isBanned(); * Added 'banned' column to users_entity * Modified ban() and unban() * Modified pam functions to check $user->isBanned() * Modified login() to check $user->isBanned() * Modified sessions_init() to check isBanned() and destroy session accordingly * Modified profile views to highlight banned users and prevent menus for non-admin users. git-svn-id: https://code.elgg.org/elgg/trunk@2554 36083f99-b078-4883-b0ff-0f9b5a30f544 --- actions/admin/user/unban.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'actions/admin') diff --git a/actions/admin/user/unban.php b/actions/admin/user/unban.php index 7f7ce3157..1f715008e 100644 --- a/actions/admin/user/unban.php +++ b/actions/admin/user/unban.php @@ -26,7 +26,7 @@ if ( ($obj instanceof ElggUser) && ($obj->canEdit())) { // Now actually disable it - if ($obj->enable()) + if ($obj->unban()) system_message(elgg_echo('admin:user:unban:yes')); else register_error(elgg_echo('admin:user:unban:no')); -- cgit v1.2.3