diff options
| author | brettp <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2010-09-24 18:01:11 +0000 | 
|---|---|---|
| committer | brettp <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2010-09-24 18:01:11 +0000 | 
| commit | 505daac23bf884e33dedd0155ebdc82e898c5b13 (patch) | |
| tree | ddde8382e2e490b4cb9da93a74b7968eb5ea47db /mod | |
| parent | b2fcb1602f275bbe404311dae0cf2c0a4334c893 (diff) | |
| download | elgg-505daac23bf884e33dedd0155ebdc82e898c5b13.tar.gz elgg-505daac23bf884e33dedd0155ebdc82e898c5b13.tar.bz2 | |
Refs #2429: Merged [6889] to trunk.
git-svn-id: http://code.elgg.org/elgg/trunk@6959 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'mod')
| -rw-r--r-- | mod/profile/start.php | 6 | 
1 files 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"); +		}  	}  } | 
