mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 22:28:51 +00:00
[ticket/10073] Make contact page available when board is disabled
PHPBB3-10073
This commit is contained in:
parent
c5a51efd20
commit
67281199be
2 changed files with 2 additions and 1 deletions
|
@ -25,6 +25,7 @@ $mode = request_var('mode', '');
|
||||||
if ($mode === 'contactadmin')
|
if ($mode === 'contactadmin')
|
||||||
{
|
{
|
||||||
define('SKIP_CHECK_BAN', true);
|
define('SKIP_CHECK_BAN', true);
|
||||||
|
define('SKIP_CHECK_DISABLED', true);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Start session management
|
// Start session management
|
||||||
|
|
|
@ -317,7 +317,7 @@ class user extends \phpbb\session
|
||||||
}
|
}
|
||||||
|
|
||||||
// Is board disabled and user not an admin or moderator?
|
// 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'])
|
if ($this->data['is_bot'])
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Reference in a new issue