From e85b0df4745dd3da659da4ebd7b1c585e8a68734 Mon Sep 17 00:00:00 2001 From: sniedzielski Date: Wed, 21 Aug 2024 12:49:45 +0200 Subject: [PATCH] OM-242: removed check in mutation with authority --- worker_voucher/gql_mutations.py | 3 --- 1 file changed, 3 deletions(-) diff --git a/worker_voucher/gql_mutations.py b/worker_voucher/gql_mutations.py index ffa0d46..b199288 100644 --- a/worker_voucher/gql_mutations.py +++ b/worker_voucher/gql_mutations.py @@ -42,9 +42,6 @@ class Input(CreateInsureeInputType): @classmethod def async_mutate(cls, user, **data): - if (not user.is_imis_admin - and user.has_perms(WorkerVoucherConfig.gql_worker_voucher_search_all_perms)): - return [{"message": _("workers.user_with_that_permission_cannot_create_worker")}] user_policyholders = PolicyHolder.objects.filter( policyholder_user_filter(user)).values_list('id', flat=True) economic_unit_code = data.pop('economic_unit_code', None)