fix: [inbox:createEntry] Ignore user alignment with organisation when creating entry
parent
b64d7890ca
commit
45d34ee43f
|
@ -75,15 +75,15 @@ class InboxTable extends AppTable
|
||||||
$errors[] = __('Unkown brood `{0}`', $entryData['data']['cerebrateURL']);
|
$errors[] = __('Unkown brood `{0}`', $entryData['data']['cerebrateURL']);
|
||||||
}
|
}
|
||||||
|
|
||||||
$found = false;
|
// $found = false;
|
||||||
foreach ($user->individual->organisations as $organisations) {
|
// foreach ($user->individual->organisations as $organisations) {
|
||||||
if ($organisations->id == $brood->organisation_id) {
|
// if ($organisations->id == $brood->organisation_id) {
|
||||||
$found = true;
|
// $found = true;
|
||||||
}
|
// }
|
||||||
}
|
// }
|
||||||
if (!$found) {
|
// if (!$found) {
|
||||||
$errors[] = __('User `{0}` is not part of the brood\'s organisation. Make sure `{0}` is aligned with the organisation owning the brood.', $user->individual->email);
|
// $errors[] = __('User `{0}` is not part of the brood\'s organisation. Make sure `{0}` is aligned with the organisation owning the brood.', $user->individual->email);
|
||||||
}
|
// }
|
||||||
return $errors;
|
return $errors;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue