#3794 closed Defect (fixed)
Elgg Profile Admin LoggedIn Cannot Edit Another User Avatar/ Profile
| Reported by: | dhrup2000 | Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | Elgg 1.8.1b |
| Component: | Core | Version: | 1.8 |
| Severity: | minor | Keywords: | Profile Edit - Admin |
| Cc: | brett@… | Difficulty: |
Description
lib.users.php should say
topbar
$user = elgg_get_logged_in_user_entity();
if ($user) {
elgg_register_menu_item('page', array(
'name' => 'edit_avatar',
BUG::'href' => "avatar/edit/{$user->username}",
'href' => "avatar/edit/".elgg_get_page_owner_entity()->username,
'text' => elgg_echo('avatar:edit'." -- ???"),
'contexts' => array('profile_edit'),
));
elgg_register_menu_item('page', array(
'name' => 'edit_profile',
BUG::'href' => "profile/{$user->username}/edit",
'href' => "profile/edit/".elgg_get_page_owner_entity()->username,
'text' => elgg_echo('profile:edit'),
'contexts' => array('profile_edit'),
));
Change History (6)
comment:1 Changed 21 months ago by cash
- Milestone changed from Needs Review to Elgg 1.8.1b
comment:2 Changed 21 months ago by Cash Costello
- Resolution set to fixed
- Status changed from new to closed
comment:3 Changed 21 months ago by Purus
- Resolution fixed deleted
- Status changed from closed to reopened
The code fix mentioned in the Fix description above seems to be wrong.
The HREF for the "Profile Edit" should be
'href' => "profile/".elgg_get_page_owner_entity()->username."/edit",
instead of
'href' => "profile/edit/".elgg_get_page_owner_entity()->username,
Was this a typo or the actual fix is wrong?
comment:4 Changed 21 months ago by Purus
- Resolution set to Closed
- Status changed from reopened to closed
Made the ticket reopened by mistake. Sorry.
comment:5 Changed 21 months ago by cash
Click on the Changeset link above to see how this was fixed
comment:6 Changed 19 months ago by Cash Costello
- Resolution changed from Closed to fixed
Fixes #3794 fixes menu links so that admins can edit avatars
Changeset: d3b4548a57668ffef7c02b9bc3b84e69a0a5eb8b

Fixes #3794 fixes menu links so that admins can edit avatars