aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/memberlist.php
diff options
context:
space:
mode:
authorCesar G <prototech91@gmail.com>2014-04-12 04:26:51 -0700
committerCesar G <prototech91@gmail.com>2014-04-23 09:11:41 -0700
commitf2e74354a34561940c3203f24816af2496b95b0b (patch)
tree8cbf4c9611c16216b8ebc67468690cd6f6b55cee /phpBB/memberlist.php
parent607698c8844b1f08aef1aca63cd8d981783ef92a (diff)
downloadforums-f2e74354a34561940c3203f24816af2496b95b0b.tar
forums-f2e74354a34561940c3203f24816af2496b95b0b.tar.gz
forums-f2e74354a34561940c3203f24816af2496b95b0b.tar.bz2
forums-f2e74354a34561940c3203f24816af2496b95b0b.tar.xz
forums-f2e74354a34561940c3203f24816af2496b95b0b.zip
[ticket/10737] Enforce allow_live_searches setting in memberlist.php.
PHPBB3-10737
Diffstat (limited to 'phpBB/memberlist.php')
-rw-r--r--phpBB/memberlist.php7
1 files changed, 7 insertions, 0 deletions
diff --git a/phpBB/memberlist.php b/phpBB/memberlist.php
index acda40c8fb..3d9f4aa028 100644
--- a/phpBB/memberlist.php
+++ b/phpBB/memberlist.php
@@ -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'))