|
|
@@ -93,14 +93,16 @@ class ResetBeUserPermsCommand extends Command
|
|
|
$io->progressStart(count($sites));
|
|
|
|
|
|
foreach ($sites as $site) {
|
|
|
+ $org_id = $site['tx_opentalent_structure_id'];
|
|
|
try {
|
|
|
- $siteController->resetBeUserPermsAction($site['tx_opentalent_structure_id'], $create);
|
|
|
+ $siteController->resetBeUserPermsAction($org_id, $create);
|
|
|
} catch (\Throwable $e) {
|
|
|
- $io->error(sprintf($e));
|
|
|
+ $io->error('Organization Id: ' . $org_id . ' - ' . sprintf($e));
|
|
|
}
|
|
|
$io->progressAdvance(1);
|
|
|
}
|
|
|
-
|
|
|
+ $io->progressFinish();
|
|
|
+
|
|
|
$io->success(sprintf("Be users permissions were reset for every website"));
|
|
|
} else {
|
|
|
$rootUid = $siteController->resetBeUserPermsAction($org_id, $create);
|