diff options
author | cash <cash.costello@gmail.com> | 2011-11-18 22:40:04 -0500 |
---|---|---|
committer | cash <cash.costello@gmail.com> | 2011-11-28 21:44:01 -0500 |
commit | 268b33d5338ec2e4da9a0a3c81a8917ce1bfda60 (patch) | |
tree | e95a47ba0e6ee9c86872c07b0301e4cb7b6833b8 /engine/lib/users.php | |
parent | d1eb0c95aff69a20aecf837c0cedcbfe481706cd (diff) | |
download | elgg-268b33d5338ec2e4da9a0a3c81a8917ce1bfda60.tar.gz elgg-268b33d5338ec2e4da9a0a3c81a8917ce1bfda60.tar.bz2 |
Fixes #3792 admin can edit settings again
Diffstat (limited to 'engine/lib/users.php')
-rw-r--r-- | engine/lib/users.php | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/engine/lib/users.php b/engine/lib/users.php index 29fa4db2f..3a86c1faa 100644 --- a/engine/lib/users.php +++ b/engine/lib/users.php @@ -1283,6 +1283,11 @@ function elgg_user_hover_menu($hook, $type, $return, $params) { $item = new ElggMenuItem('profile:edit', elgg_echo('profile:edit'), $url); $item->setSection('admin'); $return[] = $item; + + $url = "settings/user/$user->username"; + $item = new ElggMenuItem('settings:edit', elgg_echo('settings:edit'), $url); + $item->setSection('admin'); + $return[] = $item; } return $return; |