From 8e4fcb272cbc609e111618c6ce0b74ec194aaa36 Mon Sep 17 00:00:00 2001 From: ben Date: Mon, 8 Dec 2008 04:09:26 +0000 Subject: Fixes to user banning (action side). git-svn-id: https://code.elgg.org/elgg/trunk@2512 36083f99-b078-4883-b0ff-0f9b5a30f544 --- actions/admin/user/ban.php | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'actions/admin/user/ban.php') diff --git a/actions/admin/user/ban.php b/actions/admin/user/ban.php index ce2631f54..17e8dacb8 100644 --- a/actions/admin/user/ban.php +++ b/actions/admin/user/ban.php @@ -29,10 +29,12 @@ } else register_error(elgg_echo('admin:user:ban:no')); + } else { + $canedit = $obj->canEdit(); + $isinstance = ($obj instanceof ElggUser); + register_error(elgg_echo('admin:user:ban:no')); } - else - register_error(elgg_echo('admin:user:ban:no')); - forward($_SERVER['HTTP_REFERER']); + forward('pg/admin/user/'); exit; ?> \ No newline at end of file -- cgit v1.2.3