Selaa lähdekoodia

Merge branch '18.0' of github.com:Dolibarr/dolibarr into 19.0

Maxime Kohlhaas 5 kuukautta sitten
vanhempi
commit
b32789f42a
1 muutettua tiedostoa jossa 1 lisäystä ja 1 poistoa
  1. 1 1
      scripts/cron/cron_run_jobs.php

+ 1 - 1
scripts/cron/cron_run_jobs.php

@@ -220,7 +220,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