aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes
diff options
context:
space:
mode:
authorTristan Darricau <tristan.darricau@gmail.com>2018-07-08 18:41:04 +0200
committerTristan Darricau <tristan.darricau@gmail.com>2018-07-08 18:41:04 +0200
commit078d07652637d1a0ce603c684724be01677d3197 (patch)
treeae03b9dc70e02f267c28d4cc8c2b11e55386ba30 /phpBB/includes
parentbdd384aa37ed156ae077aff1640bee04be56bd93 (diff)
parentc61b9358ff7e8052e1f700c7a97a2ca3b392098a (diff)
downloadforums-078d07652637d1a0ce603c684724be01677d3197.tar
forums-078d07652637d1a0ce603c684724be01677d3197.tar.gz
forums-078d07652637d1a0ce603c684724be01677d3197.tar.bz2
forums-078d07652637d1a0ce603c684724be01677d3197.tar.xz
forums-078d07652637d1a0ce603c684724be01677d3197.zip
Merge pull request #5253 from senky/ticket/15618
[ticket/15618] Display The team link only to users with permission * github.com:/phpbb/phpbb: [ticket/15618] Display The team link only to users with permission
Diffstat (limited to 'phpBB/includes')
-rw-r--r--phpBB/includes/functions.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/phpBB/includes/functions.php b/phpBB/includes/functions.php
index 292036d5a8..cbea7afe6e 100644
--- a/phpBB/includes/functions.php
+++ b/phpBB/includes/functions.php
@@ -4430,7 +4430,7 @@ function page_header($page_title = '', $display_online_list = false, $item_id =
'U_SEARCH_ACTIVE_TOPICS'=> append_sid("{$phpbb_root_path}search.$phpEx", 'search_id=active_topics'),
'U_DELETE_COOKIES' => append_sid("{$phpbb_root_path}ucp.$phpEx", 'mode=delete_cookies'),
'U_CONTACT_US' => ($config['contact_admin_form_enable'] && $config['email_enable']) ? append_sid("{$phpbb_root_path}memberlist.$phpEx", 'mode=contactadmin') : '',
- 'U_TEAM' => ($user->data['user_id'] != ANONYMOUS && !$auth->acl_get('u_viewprofile')) ? '' : append_sid("{$phpbb_root_path}memberlist.$phpEx", 'mode=team'),
+ 'U_TEAM' => (!$auth->acl_get('u_viewprofile')) ? '' : append_sid("{$phpbb_root_path}memberlist.$phpEx", 'mode=team'),
'U_TERMS_USE' => append_sid("{$phpbb_root_path}ucp.$phpEx", 'mode=terms'),
'U_PRIVACY' => append_sid("{$phpbb_root_path}ucp.$phpEx", 'mode=privacy'),
'UA_PRIVACY' => addslashes(append_sid("{$phpbb_root_path}ucp.$phpEx", 'mode=privacy')),