aboutsummaryrefslogtreecommitdiff
path: root/mod/profile/start.php
diff options
context:
space:
mode:
authorbrettp <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544>2010-09-24 18:01:11 +0000
committerbrettp <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544>2010-09-24 18:01:11 +0000
commit505daac23bf884e33dedd0155ebdc82e898c5b13 (patch)
treeddde8382e2e490b4cb9da93a74b7968eb5ea47db /mod/profile/start.php
parentb2fcb1602f275bbe404311dae0cf2c0a4334c893 (diff)
downloadelgg-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/profile/start.php')
-rw-r--r--mod/profile/start.php6
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");
+ }
}
}