Fix: Permission on Print Sale Report
This commit is contained in:
parent
9961f2c3a1
commit
66e541d50b
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user