aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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