Skip to content

Commit

Permalink
Merge pull request #30 from openimis/feature/OM-242
Browse files Browse the repository at this point in the history
OM-242: make sure inspector can see all vouchers
  • Loading branch information
malinowskikam authored Aug 21, 2024
2 parents 5cbc34f + e85b0df commit 5d3272d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion worker_voucher/services.py
Original file line number Diff line number Diff line change
Expand Up @@ -316,7 +316,7 @@ def create_voucher_bill(user, voucher_ids, policyholder_id):


def policyholder_user_filter(user: User, prefix='') -> Q:
if user.is_imis_admin:
if user.is_imis_admin or user.has_perms(WorkerVoucherConfig.gql_worker_voucher_search_all_perms):
return Q()

filters = {
Expand Down

0 comments on commit 5d3272d

Please sign in to comment.