1
0
Fork 0
mirror of https://github.com/portainer/portainer.git synced 2025-08-05 05:45:22 +02:00

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

This commit is contained in:
LP B 2022-11-29 11:24:13 +01:00 committed by GitHub
parent 95bc508462
commit 2e19f4ea6d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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;
}
});
};
}