aboutsummaryrefslogtreecommitdiff
path: root/actions/admin/user/ban.php
diff options
context:
space:
mode:
authorben <ben@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-12-08 04:09:26 +0000
committerben <ben@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-12-08 04:09:26 +0000
commit8e4fcb272cbc609e111618c6ce0b74ec194aaa36 (patch)
treee78edaedb7ba813a6e07b40ebcedd2ccde7513a4 /actions/admin/user/ban.php
parentf8bd99f7f7fb269dd5d5f2104577736e9ec8e7a7 (diff)
downloadelgg-8e4fcb272cbc609e111618c6ce0b74ec194aaa36.tar.gz
elgg-8e4fcb272cbc609e111618c6ce0b74ec194aaa36.tar.bz2
Fixes to user banning (action side).
git-svn-id: https://code.elgg.org/elgg/trunk@2512 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'actions/admin/user/ban.php')
-rw-r--r--actions/admin/user/ban.php8
1 files changed, 5 insertions, 3 deletions
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