From 76f31c563655964e578f20efbba63703bfb19565 Mon Sep 17 00:00:00 2001 From: arfenis Date: Fri, 13 Sep 2024 01:34:29 -0400 Subject: [PATCH] stylo 2 --- .../Workflow/Mutations/Integrations/IntegrationsMutation.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/GraphQL/Workflow/Mutations/Integrations/IntegrationsMutation.php b/app/GraphQL/Workflow/Mutations/Integrations/IntegrationsMutation.php index 7ff2ff229..6f9e0e9cf 100644 --- a/app/GraphQL/Workflow/Mutations/Integrations/IntegrationsMutation.php +++ b/app/GraphQL/Workflow/Mutations/Integrations/IntegrationsMutation.php @@ -33,7 +33,7 @@ public function createIntegrationCompany(mixed $rootValue, array $request): Mode $company = CompaniesRepository::getById((int) $request['input']['company_id']); $region = RegionRepository::getById((int) $request['input']['region']['id'], $company); $user = auth()->user(); - + if (! $user->isAppOwner()) { CompaniesRepository::userAssociatedToCompany( $company,