[ticket/17093] Depends_on to v3310 and reformat switch

PHPBB3-17093
This commit is contained in:
Christian Schnegelberger 2023-03-02 21:14:46 +01:00
parent fd21296a18
commit 042feffed8
2 changed files with 8 additions and 5 deletions

View file

@ -18,7 +18,7 @@ class add_disable_board_access_config extends \phpbb\db\migration\migration
static public function depends_on()
{
return [
'\phpbb\db\migration\data\v33x\v339',
'\phpbb\db\migration\data\v33x\v3310',
];
}

View file

@ -380,13 +380,16 @@ class user extends \phpbb\session
case 0:
$access_disabled_board = $auth->acl_gets('a_');
break;
case 1:
$access_disabled_board = $auth->acl_gets('a_', 'm_');
break;
default:
case 2:
default:
$access_disabled_board = $auth->acl_gets('a_', 'm_') || $auth->acl_getf_global('m_');
break;
}
if ($config['board_disable'] && !defined('IN_INSTALL') && !defined('IN_LOGIN') && !defined('SKIP_CHECK_DISABLED') && !$access_disabled_board)