From a0a8aee8181a71e5058d06b250dc5033bb39c406 Mon Sep 17 00:00:00 2001 From: Alexis Lahouze Date: Thu, 25 May 2017 23:31:12 +0200 Subject: [PATCH] Uncomment jwt_required. --- accountant/views/accounts.py | 2 +- accountant/views/operations.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/accountant/views/accounts.py b/accountant/views/accounts.py index 49fe347..89e8fa2 100644 --- a/accountant/views/accounts.py +++ b/accountant/views/accounts.py @@ -320,7 +320,7 @@ class CategoryResource(Resource): @ns.expect(range_parser) @ns.marshal_list_with(category_model) - #@jwt_required + @jwt_required def get(self, account_id): """Get account category balances for a specific date range.""" diff --git a/accountant/views/operations.py b/accountant/views/operations.py index 65be98e..68a4e81 100644 --- a/accountant/views/operations.py +++ b/accountant/views/operations.py @@ -102,7 +102,7 @@ class OperationListResource(Resource): @ns.response(200, 'OK', [operation_with_balance_model]) @ns.expect(account_range_parser) @ns.marshal_list_with(operation_with_balance_model) - #@jwt_required + @jwt_required def get(self): """Get operations with cumulated balance for a specific account."""