Merge pull request #22253 from atm-kevin/FIX_Linked_Object_Agenda_Card

FIX : Linked object agenda card
This commit is contained in:
Laurent Destailleur 2022-09-20 01:13:11 +02:00 committed by GitHub
commit 72478c85e1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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];