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()
|
||||
{
|
||||
return [
|
||||
'\phpbb\db\migration\data\v33x\v339',
|
||||
'\phpbb\db\migration\data\v33x\v3310',
|
||||
];
|
||||
}
|
||||
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Add table
Reference in a new issue