From 45a0d2b76fa181b84339f67fe3db2d72f6ee49aa Mon Sep 17 00:00:00 2001 From: Denys Fedoryshchenko Date: Tue, 22 Apr 2025 16:51:50 +0300 Subject: [PATCH] (main.py) Add workaround for qualcomm Make superusers production and staging.kernelci.org in one more place. Signed-off-by: Denys Fedoryshchenko --- api/main.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/api/main.py b/api/main.py index dd4e08b7..64fb9b54 100644 --- a/api/main.py +++ b/api/main.py @@ -819,7 +819,9 @@ async def put_batch_nodeset(data: NodeUpdateRequest, detail=f"Node not found with id: {node_id}" ) # verify ownership, and ignore if not owner - if not user.username == node_from_id.owner: + if not user.username == node_from_id.owner\ + and user.username != 'production' and\ + user.username != 'staging.kernelci.org': continue # right now we support only field: # processed_by_kcidb_bridge, also value should be boolean