From bfa5828259a5b8e59de1d345b1805bf764f7a839 Mon Sep 17 00:00:00 2001 From: GareArc Date: Mon, 21 Apr 2025 19:40:51 -0400 Subject: [PATCH] fix: temp fix for unauthorized user in explore page --- api/controllers/console/explore/wraps.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/api/controllers/console/explore/wraps.py b/api/controllers/console/explore/wraps.py index e27ed5aa7b..4fbf4092fd 100644 --- a/api/controllers/console/explore/wraps.py +++ b/api/controllers/console/explore/wraps.py @@ -3,7 +3,7 @@ from functools import wraps from flask_login import current_user # type: ignore from flask_restful import Resource # type: ignore -from werkzeug.exceptions import NotFound, Unauthorized +from werkzeug.exceptions import NotFound from controllers.console.wraps import account_initialization_required from extensions.ext_database import db @@ -67,7 +67,7 @@ def user_allowed_to_access_app(view=None): ) logging.info(f"res: {res}") if not res: - raise Unauthorized("User not allowed to access this app") + raise ValueError("User not allowed to access this app") return view(installed_app, *args, **kwargs)