feat(server): add project RBAC and guarded workflows

This commit is contained in:
2026-07-30 16:45:10 +08:00
parent cad8527ab6
commit 9bff6a556a
27 changed files with 1431 additions and 395 deletions
+13
View File
@@ -0,0 +1,13 @@
from uuid import UUID
from pydantic import BaseModel
class AccessContextResponse(BaseModel):
user_id: UUID
username: str
system_role: str
is_system_admin: bool
project_id: UUID | None = None
project_role: str | None = None
permissions: list[str]