From 104e56f56fcfc5cd3531e1bedec6e298bc251e88 Mon Sep 17 00:00:00 2001 From: Christian Schnegelberger Date: Tue, 17 Jan 2023 20:58:22 +0100 Subject: [PATCH] [ticket/17093] Fix to differ between Global and local moderators PHPBB3-17093 --- phpBB/phpbb/user.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/phpBB/phpbb/user.php b/phpBB/phpbb/user.php index 2c7e5da8bc..47fba882bd 100644 --- a/phpBB/phpbb/user.php +++ b/phpBB/phpbb/user.php @@ -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: