diff --git a/backend/src/resources/dashboard.py b/backend/src/resources/dashboard.py index 12903c0..1b932d8 100644 --- a/backend/src/resources/dashboard.py +++ b/backend/src/resources/dashboard.py @@ -1,12 +1,12 @@ from flask_restful import Resource -from flask_jwt_extended import jwt_optional, get_jwt_identity +from flask_jwt_extended import jwt_required, get_jwt_identity from src.libs.strings import gettext class Dashboard(Resource): @classmethod - @jwt_optional + @jwt_required(optional=True) def get(cls): user_id = get_jwt_identity() if user_id: