From fbb89d654b0f28dc10d0740e7a91fced02a5b17d Mon Sep 17 00:00:00 2001
From: Anders Harrisson <anders.harrisson@ess.eu>
Date: Wed, 6 Jul 2022 07:28:07 +0200
Subject: [PATCH] Add API access to delete interfaces with network level
 permission

This is to align with the access rights for the UI

JIRA INFRA-5541
---
 app/api/network.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/app/api/network.py b/app/api/network.py
index 4aa81b2..820f3c9 100644
--- a/app/api/network.py
+++ b/app/api/network.py
@@ -313,7 +313,7 @@ def patch_interface(interface_id):
 
 
 @bp.route("/interfaces/<int:interface_id>", methods=["DELETE"])
-@login_groups_accepted("admin")
+@login_groups_accepted("admin", "network")
 def delete_interface(interface_id):
     """Delete an interface
 
-- 
GitLab