mirror of
https://github.com/phpbb/phpbb.git
synced 2025-01-19 15:17:16 +01:00
[ticket/10737] Enforce allow_live_searches setting in memberlist.php.
PHPBB3-10737
This commit is contained in:
parent
607698c884
commit
f2e74354a3
@ -348,6 +348,7 @@ $lang = array_merge($lang, array(
|
||||
'LDAP_NO_SERVER_CONNECTION' => 'Could not connect to LDAP server.',
|
||||
'LDAP_SEARCH_FAILED' => 'An error occurred while searching the LDAP directory.',
|
||||
'LEGEND' => 'Legend',
|
||||
'LIVE_SEARCHES_NOT_ALLOWED' => 'Live searches are not allowed.',
|
||||
'LOADING' => 'Loading',
|
||||
'LOCATION' => 'Location',
|
||||
'LOCK_POST' => 'Lock post',
|
||||
|
@ -50,6 +50,13 @@ switch ($mode)
|
||||
case 'email':
|
||||
break;
|
||||
|
||||
case 'livesearch':
|
||||
if (!$config['allow_live_searches'])
|
||||
{
|
||||
trigger_error('LIVE_SEARCHES_NOT_ALLOWED');
|
||||
}
|
||||
// No break
|
||||
|
||||
default:
|
||||
// Can this user view profiles/memberlist?
|
||||
if (!$auth->acl_gets('u_viewprofile', 'a_user', 'a_useradd', 'a_userdel'))
|
||||
|
Loading…
x
Reference in New Issue
Block a user