diff options
author | Joas Schilling <nickvergessen@gmx.de> | 2014-05-20 17:31:53 +0200 |
---|---|---|
committer | Joas Schilling <nickvergessen@gmx.de> | 2014-05-29 02:14:44 +0200 |
commit | 67281199be8e796ed7bf50e6d6db0f36cff89428 (patch) | |
tree | 78d12f6debb66ba373f5d5ddf01fca2d4482ea75 | |
parent | c5a51efd2084f687eea17c93d95f1e13c7496d58 (diff) | |
download | forums-67281199be8e796ed7bf50e6d6db0f36cff89428.tar forums-67281199be8e796ed7bf50e6d6db0f36cff89428.tar.gz forums-67281199be8e796ed7bf50e6d6db0f36cff89428.tar.bz2 forums-67281199be8e796ed7bf50e6d6db0f36cff89428.tar.xz forums-67281199be8e796ed7bf50e6d6db0f36cff89428.zip |
[ticket/10073] Make contact page available when board is disabled
PHPBB3-10073
-rw-r--r-- | phpBB/memberlist.php | 1 | ||||
-rw-r--r-- | phpBB/phpbb/user.php | 2 |
2 files changed, 2 insertions, 1 deletions
diff --git a/phpBB/memberlist.php b/phpBB/memberlist.php index b3025dacce..4eb6d79272 100644 --- a/phpBB/memberlist.php +++ b/phpBB/memberlist.php @@ -25,6 +25,7 @@ $mode = request_var('mode', ''); if ($mode === 'contactadmin') { define('SKIP_CHECK_BAN', true); + define('SKIP_CHECK_DISABLED', true); } // Start session management diff --git a/phpBB/phpbb/user.php b/phpBB/phpbb/user.php index f4cc26cc9a..4e90044395 100644 --- a/phpBB/phpbb/user.php +++ b/phpBB/phpbb/user.php @@ -317,7 +317,7 @@ class user extends \phpbb\session } // Is board disabled and user not an admin or moderator? - if ($config['board_disable'] && !defined('IN_LOGIN') && !$auth->acl_gets('a_', 'm_') && !$auth->acl_getf_global('m_')) + if ($config['board_disable'] && !defined('IN_LOGIN') && !defined('SKIP_CHECK_DISABLED') && !$auth->acl_gets('a_', 'm_') && !$auth->acl_getf_global('m_')) { if ($this->data['is_bot']) { |