aboutsummaryrefslogtreecommitdiff
path: root/actions/admin/user/makeadmin.php
diff options
context:
space:
mode:
Diffstat (limited to 'actions/admin/user/makeadmin.php')
-rw-r--r--actions/admin/user/makeadmin.php17
1 files changed, 8 insertions, 9 deletions
diff --git a/actions/admin/user/makeadmin.php b/actions/admin/user/makeadmin.php
index dc5c508fb..f8a426a41 100644
--- a/actions/admin/user/makeadmin.php
+++ b/actions/admin/user/makeadmin.php
@@ -1,19 +1,18 @@
<?php
/**
- * Make another user an admin.
+ * Grants admin privileges to a user.
*
- * @package Elgg
- * @subpackage Core
- * @author Curverider Ltd
- * @link http://elgg.org/
+ * In >=1.7.1, admin is flagged by setting the admin
+ * column in the users_entity table.
+ *
+ * In <1.7.1, admin is a piece of metadata on the user object.
+ *
+ * @package Elgg.Core
+ * @subpackage Administration.User
*/
-global $CONFIG;
-
-// block non-admin users
admin_gatekeeper();
-// Get the user
$guid = get_input('guid');
$user = get_entity($guid);