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: