mirror of https://github.com/portainer/portainer
fix(app): use isAdmin check on CE [EE-6231] (#10956)
Co-authored-by: testa113 <testa113>pull/10957/head
parent
ae6333bf7c
commit
fcc5736d61
|
@ -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>
|
||||||
|
|
||||||
|
|
|
@ -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();
|
||||||
|
|
Loading…
Reference in New Issue