feat(server): add project RBAC and guarded workflows

This commit is contained in:
2026-07-30 16:45:09 +08:00
parent 3fbb17bb30
commit ae1a657554
29 changed files with 1431 additions and 412 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]