Pārlūkot izejas kodu

fix security error

Olivier Massot 1 gadu atpakaļ
vecāks
revīzija
dfd878329c

+ 0 - 3
src/State/Processor/Organization/OrganizationCreationRequestProcessor.php

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