sprint12+13: zentrale rechte settings page + ABAC engine backend (model, migration 0055, service, routes)

This commit is contained in:
Agent Zero
2026-07-29 02:42:16 +02:00
parent 2c14368b90
commit e0003b9384
13 changed files with 1075 additions and 0 deletions
+12
View File
@@ -150,6 +150,18 @@ async def get_entity_access(
}
@router.get("/all")
@require_permission("settings:read")
async def list_all_permissions(
db: AsyncSession = Depends(get_db),
current_user: dict = Depends(get_current_user),
):
"""List ALL permission entries for the current tenant."""
tenant_id = uuid.UUID(current_user["tenant_id"])
items = await entity_permission_service.list_all_permissions(db, tenant_id)
return {"items": items, "total": len(items)}
@router.get("/registry")
async def list_entity_registry(
current_user: dict = Depends(get_current_user),