diff --git a/server/app/apis/__init__.py b/server/app/apis/__init__.py index 1be8ff47cbb48164187c170137267bc726d33cd5..5bb204b3de372e93a4182943013f20a3b7d5b3f9 100644 --- a/server/app/apis/__init__.py +++ b/server/app/apis/__init__.py @@ -8,7 +8,7 @@ from flask_smorest.error_handler import ErrorSchema Blueprint.PAGINATION_HEADER_FIELD_NAME = "pagination" -ALL = "*" +ALL = ["*"] class http_codes: diff --git a/server/app/apis/auth.py b/server/app/apis/auth.py index cf3f78dab3992b859e096b4cdc01fa70e702f522..18fb5f5d716af23a08e0a126c1cd2ae3e5394da5 100644 --- a/server/app/apis/auth.py +++ b/server/app/apis/auth.py @@ -119,7 +119,7 @@ class AuthLogin(MethodView): @blp.route("/logout") class AuthLogout(MethodView): - @blp.authorization(allowed_roles="*", allowed_views=["*"]) + @blp.authorization(allowed_roles=ALL, allowed_views=ALL) @blp.response(http_codes.NO_CONTENT, None) def post(self): """ Logs out. """