Преглед изворни кода

! Since the menu only actually makes sense to you if you are in your own profile, and you can see that as a member, why make it any more complex? (The menu is going away soon anyway. This is merely to avoid it being broken in the interim.)

Signed-off-by: Peter Spicer <[email protected]>
Peter Spicer пре 11 година
родитељ
комит
0e179d3faa
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      Sources/Subs.php

+ 1 - 1
Sources/Subs.php

@@ -3790,7 +3790,7 @@ function setupMenuContext()
 	// Set up the menu privileges.
 	$context['allow_search'] = !empty($modSettings['allow_guestAccess']) ? allowedTo('search_posts') : (!$user_info['is_guest'] && allowedTo('search_posts'));
 	$context['allow_admin'] = allowedTo(array('admin_forum', 'manage_boards', 'manage_permissions', 'moderate_forum', 'manage_membergroups', 'manage_bans', 'send_mail', 'edit_news', 'manage_attachments', 'manage_smileys'));
-	$context['allow_edit_profile'] = !$user_info['is_guest'] && allowedTo(array('profile_view_own', 'profile_view_any', 'profile_identity_own', 'profile_identity_any', 'profile_forum_own', 'profile_forum_any', 'moderate_forum', 'manage_membergroups'));
+	$context['allow_edit_profile'] = !$user_info['is_guest'];
 	$context['allow_memberlist'] = allowedTo('view_mlist');
 	$context['allow_calendar'] = allowedTo('calendar_view') && !empty($modSettings['cal_enabled']);
 	$context['allow_moderation_center'] = $context['user']['can_mod'];