mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2025-02-20 13:46:52 +01:00
Fix : cron job user rights force reload
This commit is contained in:
parent
2519278269
commit
273ec857a3
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user