diff options
author | cash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2010-11-17 12:38:14 +0000 |
---|---|---|
committer | cash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2010-11-17 12:38:14 +0000 |
commit | fc7f4e880ddfed812438fabc791c5f5056f541e6 (patch) | |
tree | 41e6146d1dc35e149b75047c9deef3f937765051 /actions/admin/user/unban.php | |
parent | 66b0b9fe69ed698249b35ccfa8b601110fa99964 (diff) | |
download | elgg-fc7f4e880ddfed812438fabc791c5f5056f541e6.tar.gz elgg-fc7f4e880ddfed812438fabc791c5f5056f541e6.tar.bz2 |
Closes #1422 admin user actions now check for self before banning, deleting, or removing admin privileges
git-svn-id: http://code.elgg.org/elgg/trunk@7332 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'actions/admin/user/unban.php')
-rw-r--r-- | actions/admin/user/unban.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/actions/admin/user/unban.php b/actions/admin/user/unban.php index 66173623a..883e074ed 100644 --- a/actions/admin/user/unban.php +++ b/actions/admin/user/unban.php @@ -12,10 +12,10 @@ $access_status = access_get_show_hidden_status(); access_show_hidden_entities(true); $guid = get_input('guid'); -$obj = get_entity($guid); +$user = get_entity($guid); -if (($obj instanceof ElggUser) && ($obj->canEdit())) { - if ($obj->unban()) { +if (($user instanceof ElggUser) && ($user->canEdit())) { + if ($user->unban()) { system_message(elgg_echo('admin:user:unban:yes')); } else { register_error(elgg_echo('admin:user:unban:no')); |