소스 검색

fix: fix load_balancing_config save error (#21213)

tags/1.5.0
Good Wood 4 달 전
부모
커밋
0cfdb8c043
No account linked to committer's email address
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

Loading…
취소
저장