fix(docker/container): auto select private access when enabling UAC on public container edit (#8032) [EE-44-64]

pull/8131/head
LP B 2 years ago committed by GitHub
parent 95bc508462
commit 2e19f4ea6d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -92,6 +92,9 @@ angular.module('portainer.app').controller('porAccessControlFormController', [
this.onChangeEnablement = function (enable) { this.onChangeEnablement = function (enable) {
$scope.$evalAsync(() => { $scope.$evalAsync(() => {
ctrl.formData.AccessControlEnabled = enable; ctrl.formData.AccessControlEnabled = enable;
if (enable) {
ctrl.formData.Ownership = isAdmin ? RCO.ADMINISTRATORS : RCO.PRIVATE;
}
}); });
}; };
} }

Loading…
Cancel
Save