1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-08-03 07:18:08 +02:00

[ticket/17093] Fix to differ between Global and local moderators

PHPBB3-17093
This commit is contained in:
Christian Schnegelberger
2023-01-17 20:58:22 +01:00
parent e55e2f17d3
commit 104e56f56f

View File

@@ -375,12 +375,13 @@ class user extends \phpbb\session
// Check acp setting who has access: only admins "case: 0", plus global moderators "case: 1" and plus moderators "case: 2"
$board_disable_access = (int) $config['board_disable_access'];
switch ($board_disable_access) {
switch ($board_disable_access)
{
case 0:
$access_disabled_board = $auth->acl_gets('a_');
break;
case 1:
$access_disabled_board = $auth->acl_gets('a_') || $auth->acl_getf_global('m_');
$access_disabled_board = $auth->acl_gets('a_', 'm_');
break;
default:
case 2: