From 505daac23bf884e33dedd0155ebdc82e898c5b13 Mon Sep 17 00:00:00 2001 From: brettp Date: Fri, 24 Sep 2010 18:01:11 +0000 Subject: Refs #2429: Merged [6889] to trunk. git-svn-id: http://code.elgg.org/elgg/trunk@6959 36083f99-b078-4883-b0ff-0f9b5a30f544 --- mod/profile/start.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/mod/profile/start.php b/mod/profile/start.php index 80f923cb3..4670fbbda 100644 --- a/mod/profile/start.php +++ b/mod/profile/start.php @@ -179,8 +179,10 @@ function profile_pagesetup() //add submenu options if (get_context() == "profile") { $page_owner = page_owner_entity(); - add_submenu_item(elgg_echo('profile:editdetails'), $CONFIG->wwwroot . "pg/profile/{$page_owner->username}/edit/details"); - add_submenu_item(elgg_echo('profile:editicon'), $CONFIG->wwwroot . "pg/profile/{$page_owner->username}/edit/icon"); + if ($page_owner->canEdit()) { + add_submenu_item(elgg_echo('profile:editdetails'), $CONFIG->wwwroot . "pg/profile/{$page_owner->username}/edit/details"); + add_submenu_item(elgg_echo('profile:editicon'), $CONFIG->wwwroot . "pg/profile/{$page_owner->username}/edit/icon"); + } } } -- cgit v1.2.3