From 66e541d50bef23a07fc12a4e435807b706027016 Mon Sep 17 00:00:00 2001 From: tanshu Date: Sun, 13 Jun 2021 18:39:55 +0530 Subject: [PATCH] Fix: Permission on Print Sale Report --- barker/barker/routers/reports/sale_report.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/barker/barker/routers/reports/sale_report.py b/barker/barker/routers/reports/sale_report.py index 4580fa2..793bb81 100644 --- a/barker/barker/routers/reports/sale_report.py +++ b/barker/barker/routers/reports/sale_report.py @@ -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: