From 0f1be90cbf09bb8cda361fb76233c4ebe33ed93f Mon Sep 17 00:00:00 2001 From: shenshuo <191715030@qq.com> Date: Mon, 9 Dec 2024 11:08:03 +0800 Subject: [PATCH] =?UTF-8?q?2024=E5=B9=B412=E6=9C=8809=E6=97=A5=20=20?= =?UTF-8?q?=E7=BB=A7=E7=BB=AD=E5=AE=8C=E5=96=84=E5=AE=9A=E5=88=B6=E9=A1=B5?= =?UTF-8?q?=E9=9D=A2=E6=8E=A5=E5=8F=A301?= 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 977ac6a..492373c 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 is_superuser or user_id in biz_info.users_info: + if not (is_superuser or user_id in biz_info.users_info): return {"code": -3, "msg": "你没有访问的业务权限,请联系管理员"} except Exception as db_err: