Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion api/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
from fastapi_users import FastAPIUsers
from beanie import PydanticObjectId
from pydantic import BaseModel
from kernelci.api.models import (

Check failure on line 39 in api/main.py

View workflow job for this annotation

GitHub Actions / Lint

Unable to import 'kernelci.api.models'
Node,
Hierarchy,
PublishEvent,
Expand Down Expand Up @@ -819,7 +819,9 @@
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
Expand Down