sprint12+13: zentrale rechte settings page + ABAC engine backend (model, migration 0055, service, routes)
This commit is contained in:
@@ -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),
|
||||
|
||||
Reference in New Issue
Block a user