Skip to content

Commit

Permalink
2024年12月09日 继续完善定制页面接口01
Browse files Browse the repository at this point in the history
  • Loading branch information
ss1917 committed Dec 9, 2024
1 parent 5d2fb7a commit 0f1be90
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion services/biz_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 0f1be90

Please sign in to comment.