ソースを参照

Merge branch '16.0' of github.com:Dolibarr/dolibarr into 17.0

Maxime Kohlhaas 5 ヶ月 前
コミット
6388f6e62a
1 ファイル変更1 行追加1 行削除
  1. 1 1
      scripts/cron/cron_run_jobs.php

+ 1 - 1
scripts/cron/cron_run_jobs.php

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