Fix : cron job user rights force reload

This commit is contained in:
Maxime Kohlhaas 2025-01-07 18:35:58 +01:00
parent 2519278269
commit 273ec857a3

View File

@ -210,7 +210,7 @@ if (is_array($object->lines) && (count($object->lines) > 0)) {
exit(-1);
}
}
$user->getrights();
$user->getrights('', 1); // We force rights reload to have the correct permissions for user in the entity we just switched in
}
// Reload langs