From d9d7e552db4f0bde2a98c0dc7f5cc26a547ead58 Mon Sep 17 00:00:00 2001 From: shenshuo <191715030@qq.com> Date: Thu, 19 Dec 2024 18:38:29 +0800 Subject: [PATCH] =?UTF-8?q?2024=E5=B9=B412=E6=9C=8819=E6=97=A5=20=20=20?= =?UTF-8?q?=E4=BC=98=E5=8C=96=E4=B8=9A=E5=8A=A1=E9=80=BB=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- services/biz_service.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/services/biz_service.py b/services/biz_service.py index 492373c..5c95dd0 100644 --- a/services/biz_service.py +++ b/services/biz_service.py @@ -251,7 +251,7 @@ def switch_business(set_secure_cookie, **params) -> dict: if not biz_info: return {"code": -2, "msg": "未知业务信息/资源组信息"} # 权限检查,是否为超级用户或该用户是否在业务信息中 - if not (is_superuser or user_id in biz_info.users_info): + if not (biz_id in ['501', '502'] or is_superuser or user_id in biz_info.users_info): return {"code": -3, "msg": "你没有访问的业务权限,请联系管理员"} except Exception as db_err: