浏览代码

fix: fix load_balancing_config save error (#21213)

tags/1.5.0
Good Wood 4 个月前
父节点
当前提交
0cfdb8c043
没有帐户链接到提交者的电子邮件
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2
    2
      api/controllers/console/workspace/load_balancing_config.py

+ 2
- 2
api/controllers/console/workspace/load_balancing_config.py 查看文件

@@ -15,7 +15,7 @@ class LoadBalancingCredentialsValidateApi(Resource):
@login_required
@account_initialization_required
def post(self, provider: str):
if not TenantAccountRole.is_privileged_role(current_user.current_tenant.current_role):
if not TenantAccountRole.is_privileged_role(current_user.current_role):
raise Forbidden()

tenant_id = current_user.current_tenant_id
@@ -64,7 +64,7 @@ class LoadBalancingConfigCredentialsValidateApi(Resource):
@login_required
@account_initialization_required
def post(self, provider: str, config_id: str):
if not TenantAccountRole.is_privileged_role(current_user.current_tenant.current_role):
if not TenantAccountRole.is_privileged_role(current_user.current_role):
raise Forbidden()

tenant_id = current_user.current_tenant_id

正在加载...
取消
保存