From a83b0c6ff66ac863c6b5629c55d67b472b34f250 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Madis=20M=C3=A4gi?= Date: Mon, 26 Aug 2024 21:55:06 +0300 Subject: [PATCH] Remove k-space:board edit everything access --- inventory-app/inventory.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/inventory-app/inventory.py b/inventory-app/inventory.py index b91485a..5ca35b7 100644 --- a/inventory-app/inventory.py +++ b/inventory-app/inventory.py @@ -149,7 +149,7 @@ def check_edit_permission(item_id): user_groups = user.get("groups", []) if item.get("type") == "key" and "k-space:janitors" not in user_groups: return False - if any(group in user_groups for group in ["k-space:board", "k-space:kubernetes:admins", "k-space:janitors"]): + if any(group in user_groups for group in ["k-space:kubernetes:admins", "k-space:janitors"]): return True item_username = item.get("inventory", {}).get("owner", {}).get("username", False) user_username = user.get("username", False)