Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OM-242: make sure inspector can see all vouchers #30

Merged
merged 3 commits into from
Aug 21, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading