diff --git a/app/portainer/components/accessControlForm/porAccessControlFormController.js b/app/portainer/components/accessControlForm/porAccessControlFormController.js index 05a6e35dd..5809a9dfb 100644 --- a/app/portainer/components/accessControlForm/porAccessControlFormController.js +++ b/app/portainer/components/accessControlForm/porAccessControlFormController.js @@ -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; + } }); }; }