aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/functions.php
diff options
context:
space:
mode:
authorMeik Sievertsen <acydburn@phpbb.com>2008-10-09 14:22:07 +0000
committerMeik Sievertsen <acydburn@phpbb.com>2008-10-09 14:22:07 +0000
commit9c7d8dcd7d5c60f88b7b980e9b7d87974133493f (patch)
tree85d166c3d238bcb7ba078a231dbfd0501c5ef7cc /phpBB/includes/functions.php
parent73db74dfa15823a1ce07e90df3b7ab24f6e788d2 (diff)
downloadforums-9c7d8dcd7d5c60f88b7b980e9b7d87974133493f.tar
forums-9c7d8dcd7d5c60f88b7b980e9b7d87974133493f.tar.gz
forums-9c7d8dcd7d5c60f88b7b980e9b7d87974133493f.tar.bz2
forums-9c7d8dcd7d5c60f88b7b980e9b7d87974133493f.tar.xz
forums-9c7d8dcd7d5c60f88b7b980e9b7d87974133493f.zip
- Do not show link to user/group profiles if user has no permission to view the linked page and gets a denied message anyway. (Bug #15088)
- Do not display last post link and sort display options for search engines. (Bug #15088) git-svn-id: file:///svn/phpbb/trunk@8988 89ea8834-ac86-4346-8a33-228a782c2dd0
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 7bfbda394b..eb7d5815a3 100644
--- a/phpBB/includes/functions.php
+++ b/phpBB/includes/functions.php
@@ -3539,7 +3539,7 @@ function page_header($page_title = '', $display_online_list = true)
'U_SEARCH_UNANSWERED' => append_sid('search', 'search_id=unanswered'),
'U_SEARCH_ACTIVE_TOPICS'=> append_sid('search', 'search_id=active_topics'),
'U_DELETE_COOKIES' => append_sid('ucp', 'mode=delete_cookies'),
- 'U_TEAM' => append_sid('memberlist', 'mode=leaders'),
+ 'U_TEAM' => ($user->data['user_id'] != ANONYMOUS && !$auth->acl_get('u_viewprofile')) ? '' : append_sid('memberlist', 'mode=leaders'),
'U_RESTORE_PERMISSIONS' => ($user->data['user_perm_from'] && $auth->acl_get('a_switchperm')) ? append_sid('ucp', 'mode=restore_perm') : '',
'S_USER_LOGGED_IN' => ($user->data['user_id'] != ANONYMOUS) ? true : false,