aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOliver Schramm <oliver.schramm97@gmail.com>2014-11-05 21:06:32 +0100
committerOliver Schramm <oliver.schramm97@gmail.com>2014-11-05 21:06:32 +0100
commit307fa831d67cf92a86908e42dc1a4b62751acb0d (patch)
treed86dc9cbf65471d9e446498bce2d589d392a4d71
parent0e772afb9db640e54e84cfccaddcf74f3edbb3fb (diff)
downloadforums-307fa831d67cf92a86908e42dc1a4b62751acb0d.tar
forums-307fa831d67cf92a86908e42dc1a4b62751acb0d.tar.gz
forums-307fa831d67cf92a86908e42dc1a4b62751acb0d.tar.bz2
forums-307fa831d67cf92a86908e42dc1a4b62751acb0d.tar.xz
forums-307fa831d67cf92a86908e42dc1a4b62751acb0d.zip
[ticket/13265] Don't show link to edit own profile to those without permission
PHPBB3-13265
-rw-r--r--phpBB/memberlist.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/phpBB/memberlist.php b/phpBB/memberlist.php
index 4f31178ffb..5a5be6f761 100644
--- a/phpBB/memberlist.php
+++ b/phpBB/memberlist.php
@@ -681,7 +681,7 @@ switch ($mode)
'U_MCP_QUEUE' => ($auth->acl_getf_global('m_approve')) ? append_sid("{$phpbb_root_path}mcp.$phpEx", 'i=queue', true, $user->session_id) : '',
'U_SWITCH_PERMISSIONS' => ($auth->acl_get('a_switchperm') && $user->data['user_id'] != $user_id) ? append_sid("{$phpbb_root_path}ucp.$phpEx", "mode=switch_perm&amp;u={$user_id}&amp;hash=" . generate_link_hash('switchperm')) : '',
- 'U_EDIT_SELF' => ($user_id == $user->data['user_id']) ? append_sid("{$phpbb_root_path}ucp.$phpEx", 'i=ucp_profile&amp;mode=profile_info') : '',
+ 'U_EDIT_SELF' => ($user_id == $user->data['user_id'] && $auth->acl_get('u_chgprofileinfo')) ? append_sid("{$phpbb_root_path}ucp.$phpEx", 'i=ucp_profile&amp;mode=profile_info') : '',
'S_USER_NOTES' => ($user_notes_enabled) ? true : false,
'S_WARN_USER' => ($warn_user_enabled) ? true : false,