From 95b595d2a96e81a0e43b3ec1e6ec1d316da4900a Mon Sep 17 00:00:00 2001 From: Anthony Lapenna Date: Fri, 5 Jan 2018 13:43:25 +0100 Subject: [PATCH] fix(UAC): fix an issue with network/volume ownership update (#1552) --- app/models/docker/container.js | 2 -- app/models/docker/network.js | 2 -- app/models/docker/volume.js | 2 -- 3 files changed, 6 deletions(-) diff --git a/app/models/docker/container.js b/app/models/docker/container.js index b4e65a014..c37f2fe93 100644 --- a/app/models/docker/container.js +++ b/app/models/docker/container.js @@ -34,7 +34,5 @@ function ContainerViewModel(data) { if (data.Portainer.ResourceControl) { this.ResourceControl = new ResourceControlViewModel(data.Portainer.ResourceControl); } - } else { - this.ResourceControl = { Ownership: 'public' }; } } diff --git a/app/models/docker/network.js b/app/models/docker/network.js index 0a756fa5b..baa5ab984 100644 --- a/app/models/docker/network.js +++ b/app/models/docker/network.js @@ -19,7 +19,5 @@ function NetworkViewModel(data) { if (data.Portainer.ResourceControl) { this.ResourceControl = new ResourceControlViewModel(data.Portainer.ResourceControl); } - } else { - this.ResourceControl = { Ownership: 'public' }; } } diff --git a/app/models/docker/volume.js b/app/models/docker/volume.js index 611a4cf4c..5e2701b70 100644 --- a/app/models/docker/volume.js +++ b/app/models/docker/volume.js @@ -14,7 +14,5 @@ function VolumeViewModel(data) { if (data.Portainer.ResourceControl) { this.ResourceControl = new ResourceControlViewModel(data.Portainer.ResourceControl); } - } else { - this.ResourceControl = { Ownership: 'public' }; } }