Browse Source

fix: fix load_balancing_config save error (#21213)

tags/1.5.0
Good Wood 4 months ago
parent
commit
0cfdb8c043
No account linked to committer's email address
1 changed files with 2 additions and 2 deletions
  1. 2
    2
      api/controllers/console/workspace/load_balancing_config.py

+ 2
- 2
api/controllers/console/workspace/load_balancing_config.py View File

@@ -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

Loading…
Cancel
Save