Skip to content

Commit

Permalink
2024年12月19日 优化业务逻辑
Browse files Browse the repository at this point in the history
  • Loading branch information
ss1917 committed Dec 19, 2024
1 parent e14c82a commit d9d7e55
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 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:
Expand Down

0 comments on commit d9d7e55

Please sign in to comment.