Commit 9c93ed0b authored by jose.bascunan's avatar jose.bascunan

se corrige código para que devuelva si existe empresa aun que el solicitante...

se corrige código para que devuelva si existe empresa aun que el solicitante no tenga permisos sobre esta
parent 17cdc4d2
Pipeline #7676 passed with stages
in 16 minutes and 24 seconds
......@@ -157,10 +157,7 @@ class PetitionerCompanyValidationView(BaseAPIView):
user_authorized = False
if user:
if company:
user_authorized = company.is_user_authorized_to_view(user)
if not user_authorized:
company_dict = False
user_authorized = company.is_user_authorized_to_view(user)
return Response({
'status': 'OK',
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment