diff --git a/app/utils.py b/app/utils.py index 0301a23b..d865b126 100644 --- a/app/utils.py +++ b/app/utils.py @@ -1296,7 +1296,7 @@ def authorise_api_user(auth, return_type='id'): if return_type == 'model': return user else: - return user_id + return user.id else: raise Exception('incorrect_login') except jwt.InvalidTokenError: