|
@@ -40,9 +40,6 @@ class OrganizationCreationRequestProcessor implements ProcessorInterface
|
|
|
|
|
|
|
|
/** @var Access $access */
|
|
/** @var Access $access */
|
|
|
$access = $this->security->getUser();
|
|
$access = $this->security->getUser();
|
|
|
- if (!$access instanceof Access) {
|
|
|
|
|
- throw new \RuntimeException('forbidden', Response::HTTP_FORBIDDEN);
|
|
|
|
|
- }
|
|
|
|
|
|
|
|
|
|
$organizationCreationRequest->setCreationDate(DatesUtils::new());
|
|
$organizationCreationRequest->setCreationDate(DatesUtils::new());
|
|
|
$organizationCreationRequest->setAuthorId($access->getId());
|
|
$organizationCreationRequest->setAuthorId($access->getId());
|