Explorar el Código

fix security error

Olivier Massot hace 1 año
padre
commit
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());