Skip to content

Commit

Permalink
OM-242: make sure inspector can see all vouchers
Browse files Browse the repository at this point in the history
  • Loading branch information
sniedzielski committed Aug 20, 2024
1 parent 5cbc34f commit d0574df
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 d0574df

Please sign in to comment.