The following pull request was submitted through Github. It can be accessed and reviewed at: https://github.com/lxc/lxd/pull/7922
This e-mail was sent by the LXC bot, direct replies will not reach the author unless they happen to be subscribed to this list. === Description (from pull-request) === Signed-off-by: Stéphane Graber <stgra...@ubuntu.com>
From f14f82f79f89c26000e95a6af9027e6c707ba9d7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phane=20Graber?= <stgra...@ubuntu.com> Date: Tue, 22 Sep 2020 23:37:05 -0400 Subject: [PATCH] lxd/networks: Allow network deletion in projects MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Stéphane Graber <stgra...@ubuntu.com> --- lxd/networks.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lxd/networks.go b/lxd/networks.go index 4e63f182de..32a58f7043 100644 --- a/lxd/networks.go +++ b/lxd/networks.go @@ -46,7 +46,7 @@ var networksCmd = APIEndpoint{ var networkCmd = APIEndpoint{ Path: "networks/{name}", - Delete: APIEndpointAction{Handler: networkDelete}, + Delete: APIEndpointAction{Handler: networkDelete, AccessHandler: allowProjectPermission("networks", "manage-networks")}, Get: APIEndpointAction{Handler: networkGet, AccessHandler: allowProjectPermission("networks", "view")}, Patch: APIEndpointAction{Handler: networkPatch, AccessHandler: allowProjectPermission("networks", "manage-networks")}, Post: APIEndpointAction{Handler: networkPost, AccessHandler: allowProjectPermission("networks", "manage-networks")},
_______________________________________________ lxc-devel mailing list lxc-devel@lists.linuxcontainers.org http://lists.linuxcontainers.org/listinfo/lxc-devel