aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/functions.php
diff options
context:
space:
mode:
authorJakub Senko <jakubsenko@gmail.com>2018-06-18 12:55:24 +0200
committerJakub Senko <jakubsenko@gmail.com>2018-06-18 12:55:24 +0200
commitc61b9358ff7e8052e1f700c7a97a2ca3b392098a (patch)
tree4a05a6905faf5df108f66e80dafeeeadf870a68b /phpBB/includes/functions.php
parent02cbb864a5b6df62e978a69c368c8ec5ca35d8a3 (diff)
downloadforums-c61b9358ff7e8052e1f700c7a97a2ca3b392098a.tar
forums-c61b9358ff7e8052e1f700c7a97a2ca3b392098a.tar.gz
forums-c61b9358ff7e8052e1f700c7a97a2ca3b392098a.tar.bz2
forums-c61b9358ff7e8052e1f700c7a97a2ca3b392098a.tar.xz
forums-c61b9358ff7e8052e1f700c7a97a2ca3b392098a.zip
[ticket/15618] Display The team link only to users with permission
PHPBB3-15618
Diffstat (limited to 'phpBB/includes/functions.php')
-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 270d513a26..29b9ebace4 100644
--- a/phpBB/includes/functions.php
+++ b/phpBB/includes/functions.php
@@ -4405,7 +4405,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'),
'U_RESTORE_PERMISSIONS' => ($user->data['user_perm_from'] && $auth->acl_get('a_switchperm')) ? append_sid("{$phpbb_root_path}ucp.$phpEx", 'mode=restore_perm') : '',