All checks were successful
Deploy Development / deploy (push) Successful in 47s
Test Suite / pytest-backend (push) Successful in 42s
Test Suite / lint-backend (push) Successful in 2s
Test Suite / compose-smoke (push) Has been skipped
Test Suite / k6 /api/health Baseline (push) Successful in 18s
Test Suite / playwright-smoke (push) Successful in 12s
Co-authored-by: Cursor <cursoragent@cursor.com>
36 lines
937 B
Python
36 lines
937 B
Python
"""Workspace read capabilities (AP0.7)."""
|
|
|
|
from __future__ import annotations
|
|
|
|
from rights_registry import CapabilityRegistration, register_capability
|
|
|
|
register_capability(
|
|
CapabilityRegistration(
|
|
key="kairo.actor.read",
|
|
module="tenant",
|
|
description="Actors im aktiven Tenant lesen (Directory)",
|
|
default_grants=(
|
|
("portal", "admin"),
|
|
("portal", "user"),
|
|
("tenant", "owner"),
|
|
("tenant", "admin"),
|
|
("tenant", "member"),
|
|
),
|
|
)
|
|
)
|
|
|
|
register_capability(
|
|
CapabilityRegistration(
|
|
key="kairo.workspace.read",
|
|
module="workspace",
|
|
description="Workspace-Übersichten und aggregierte Read-Models lesen",
|
|
default_grants=(
|
|
("portal", "admin"),
|
|
("portal", "user"),
|
|
("tenant", "owner"),
|
|
("tenant", "admin"),
|
|
("tenant", "member"),
|
|
),
|
|
)
|
|
)
|