1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-07-29 04:50:51 +02:00

[ticket/17410] Only fall back acp main page when in ACP with test permission

PHPBB-17410
This commit is contained in:
Marc Alexander
2024-10-10 21:38:19 +02:00
parent f80b41aa77
commit b1282fcbc7
2 changed files with 52 additions and 3 deletions

View File

@@ -502,8 +502,8 @@ class p_master
$id = $this->p_class . '_' . $id;
}
// Fallback to acp main page for special restore permission mode
if ($user->data['user_perm_from'] && $auth->acl_get('a_switchperm'))
// Fallback to acp main page for special test permission mode
if ($this->p_class === 'acp' && $user->data['user_perm_from'] && $auth->acl_get('a_switchperm'))
{
$id = '';
$mode = '';