Sfoglia il codice sorgente

fix: fix load_balancing_config save error (#21213)

tags/1.5.0
Good Wood 4 mesi fa
parent
commit
0cfdb8c043
Nessun account collegato all'indirizzo email del committer

+ 2
- 2
api/controllers/console/workspace/load_balancing_config.py Vedi 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…
Annulla
Salva