Fix: Permission on Print Sale Report

This commit is contained in:
Amritanshu Agrawal 2021-06-13 18:39:55 +05:30
parent 9961f2c3a1
commit 66e541d50b

View File

@ -111,7 +111,7 @@ def print_report(
start_date: date = Depends(report_start_date),
finish_date: date = Depends(report_finish_date),
device_id: uuid.UUID = Cookie(None),
user: UserToken = Security(get_user, scopes=["discount-report"]),
user: UserToken = Security(get_user, scopes=["sale-report"]),
) -> bool:
check_audit_permission(start_date, user.permissions)
with SessionFuture() as db: