fix(app): use isAdmin check on CE [EE-6231] (#10956)

Co-authored-by: testa113 <testa113>
pull/10957/head
Ali 2024-01-15 15:34:21 +13:00 committed by GitHub
parent ae6333bf7c
commit fcc5736d61
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 1 additions and 2 deletions

View File

@ -294,7 +294,7 @@
namespace-has-quota="ctrl.state.resourcePoolHasQuota" namespace-has-quota="ctrl.state.resourcePoolHasQuota"
max-memory-limit="ctrl.state.sliders.memory.max" max-memory-limit="ctrl.state.sliders.memory.max"
max-cpu-limit="ctrl.state.sliders.cpu.max" max-cpu-limit="ctrl.state.sliders.cpu.max"
validation-data="{maxMemoryLimit: ctrl.state.sliders.memory.max, maxCpuLimit: ctrl.state.sliders.cpu.max, isEnvironmentAdmin: ctrl.state.isEnvironmentAdmin}" validation-data="{maxMemoryLimit: ctrl.state.sliders.memory.max, maxCpuLimit: ctrl.state.sliders.cpu.max, isEnvironmentAdmin: ctrl.isAdmin}"
resource-quota-capacity-exceeded="ctrl.resourceQuotaCapacityExceeded()" resource-quota-capacity-exceeded="ctrl.resourceQuotaCapacityExceeded()"
></resource-reservation-form-section> ></resource-reservation-form-section>

View File

@ -121,7 +121,6 @@ class KubernetesCreateApplicationController {
persistedFoldersUseExistingVolumes: false, persistedFoldersUseExistingVolumes: false,
pullImageValidity: false, pullImageValidity: false,
nodePortServices: [], nodePortServices: [],
isEnvironmentAdmin: this.Authentication.hasAuthorizations(['K8sResourcePoolsW']),
}; };
this.isAdmin = this.Authentication.isAdmin(); this.isAdmin = this.Authentication.isAdmin();