aboutsummaryrefslogtreecommitdiff
path: root/actions/admin/user/unban.php
diff options
context:
space:
mode:
Diffstat (limited to 'actions/admin/user/unban.php')
-rw-r--r--actions/admin/user/unban.php13
1 files changed, 3 insertions, 10 deletions
diff --git a/actions/admin/user/unban.php b/actions/admin/user/unban.php
index 6e04c8114..2bc609b5c 100644
--- a/actions/admin/user/unban.php
+++ b/actions/admin/user/unban.php
@@ -1,26 +1,20 @@
<?php
/**
- * Elgg ban user
+ * Unbans a user.
*
- * @package Elgg
- * @subpackage Core
- * @author Curverider Ltd
- * @link http://elgg.org/
+ * @package Elgg.Core
+ * @subpackage Administration.User
*/
-
-// block non-admin users
admin_gatekeeper();
$access_status = access_get_show_hidden_status();
access_show_hidden_entities(true);
-// Get the user
$guid = get_input('guid');
$obj = get_entity($guid);
if (($obj instanceof ElggUser) && ($obj->canEdit())) {
- // Now actually disable it
if ($obj->unban()) {
system_message(elgg_echo('admin:user:unban:yes'));
} else {
@@ -33,4 +27,3 @@ if (($obj instanceof ElggUser) && ($obj->canEdit())) {
access_show_hidden_entities($access_status);
forward($_SERVER['HTTP_REFERER']);
-exit;