mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-08 04:18:52 +00:00
[ticket/17093] Depends_on to v3310 and reformat switch
PHPBB3-17093
This commit is contained in:
parent
fd21296a18
commit
042feffed8
2 changed files with 8 additions and 5 deletions
|
@ -18,7 +18,7 @@ class add_disable_board_access_config extends \phpbb\db\migration\migration
|
||||||
static public function depends_on()
|
static public function depends_on()
|
||||||
{
|
{
|
||||||
return [
|
return [
|
||||||
'\phpbb\db\migration\data\v33x\v339',
|
'\phpbb\db\migration\data\v33x\v3310',
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -379,14 +379,17 @@ class user extends \phpbb\session
|
||||||
{
|
{
|
||||||
case 0:
|
case 0:
|
||||||
$access_disabled_board = $auth->acl_gets('a_');
|
$access_disabled_board = $auth->acl_gets('a_');
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case 1:
|
case 1:
|
||||||
$access_disabled_board = $auth->acl_gets('a_', 'm_');
|
$access_disabled_board = $auth->acl_gets('a_', 'm_');
|
||||||
break;
|
break;
|
||||||
default:
|
|
||||||
case 2:
|
case 2:
|
||||||
|
default:
|
||||||
$access_disabled_board = $auth->acl_gets('a_', 'm_') || $auth->acl_getf_global('m_');
|
$access_disabled_board = $auth->acl_gets('a_', 'm_') || $auth->acl_getf_global('m_');
|
||||||
break;
|
break;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($config['board_disable'] && !defined('IN_INSTALL') && !defined('IN_LOGIN') && !defined('SKIP_CHECK_DISABLED') && !$access_disabled_board)
|
if ($config['board_disable'] && !defined('IN_INSTALL') && !defined('IN_LOGIN') && !defined('SKIP_CHECK_DISABLED') && !$access_disabled_board)
|
||||||
|
|
Loading…
Add table
Reference in a new issue