mirror of https://github.com/portainer/portainer
fix(docker/container): auto select private access when enabling UAC on public container edit (#8032) [EE-44-64]
parent
95bc508462
commit
2e19f4ea6d
|
@ -92,6 +92,9 @@ angular.module('portainer.app').controller('porAccessControlFormController', [
|
|||
this.onChangeEnablement = function (enable) {
|
||||
$scope.$evalAsync(() => {
|
||||
ctrl.formData.AccessControlEnabled = enable;
|
||||
if (enable) {
|
||||
ctrl.formData.Ownership = isAdmin ? RCO.ADMINISTRATORS : RCO.PRIVATE;
|
||||
}
|
||||
});
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue