mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-20 07:21:30 +02:00
[ticket/10737] Enforce allow_live_searches setting in memberlist.php.
PHPBB3-10737
This commit is contained in:
@@ -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'))
|
||||
|
Reference in New Issue
Block a user