diff --git a/accountant/views/operations.py b/accountant/views/operations.py index 0679c15..2e2005a 100644 --- a/accountant/views/operations.py +++ b/accountant/views/operations.py @@ -127,6 +127,9 @@ class OperationListResource(Resource): data = self.api.payload account_id = data['account_id'] + + # FIXME Alexis Lahouze 2017-05-19 Check account_id presence. + account = Account.query().get(account_id) if not account: diff --git a/accountant/views/users.py b/accountant/views/users.py index 868aa81..d8919ad 100644 --- a/accountant/views/users.py +++ b/accountant/views/users.py @@ -90,4 +90,6 @@ class LoginResource(Resource): """Get authenticated user information.""" user = User.query().get(get_jwt_identity()) + # FIXME Alexis Lahouze 2017-05-19 Check user presence + return user, 200