diff --git a/api/src/Controller/UserController.php b/api/src/Controller/UserController.php index 94e5711e..95643024 100644 --- a/api/src/Controller/UserController.php +++ b/api/src/Controller/UserController.php @@ -238,7 +238,6 @@ public function gmailAction(Session $session, Request $request, CommonGroundServ */ public function linkedinAction(Session $session, Request $request, CommonGroundService $commonGroundService, ParameterBagInterface $params, EventDispatcherInterface $dispatcher) { - if ($request->query->get('error')) { $this->flash->add('warning', 'LinkedIn authorization has been cancelled'); if ($session->get('backUrl')) { diff --git a/api/src/Subscriber/AccessSubscriber.php b/api/src/Subscriber/AccessSubscriber.php index 2b735a6f..8eeec21a 100644 --- a/api/src/Subscriber/AccessSubscriber.php +++ b/api/src/Subscriber/AccessSubscriber.php @@ -81,7 +81,6 @@ public function grantAccess(ViewEvent $event) $authorization['purposeLimitation'] = '/purpose_limitations/'.$authorization['purposeLimitation']['id']; } - if (!empty($authorization['dossiers'])) { foreach ($authorization['dossiers'] as &$dossier) { $dossier = '/dossiers/'.$dossier['id']; @@ -105,7 +104,6 @@ public function grantAccess(ViewEvent $event) } $authorization = $this->commonGroundService->saveResource($authorization, ['component' => 'wac', 'type' => 'authorizations']); - } $authorizationLog['endpoint'] = 'access_tokens'; $this->commonGroundService->createResource($authorizationLog, ['component' => 'wac', 'type' => 'authorization_logs']);