FIX no when contains an @

This commit is contained in:
kevin 2022-09-13 16:04:20 +02:00
parent 771f1dcc67
commit 81ce609b7b

View File

@ -711,6 +711,7 @@ class User extends CommonObject
// If module is abc@module, we check permission user->rights->module->abc->permlevel1
$tmp = explode('@', $rightsPath, 2);
if (! empty($tmp[1])) {
if (strpos($module, '@') !== false) $module = $tmp[1];
$rightsPath = $tmp[1];
$permlevel2 = $permlevel1;
$permlevel1 = $tmp[0];