mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-07 20:08:53 +00:00
[ticket/17093] Fix to differ between Global and local moderators
PHPBB3-17093
This commit is contained in:
parent
e55e2f17d3
commit
104e56f56f
1 changed files with 3 additions and 2 deletions
|
@ -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:
|
||||
|
|
Loading…
Add table
Reference in a new issue