Kairo-Jinkendo/backend/rights_registrations/tenant_ops.py
Lars 910b1d7e07
Some checks failed
Deploy Development / deploy (push) Successful in 33s
Test Suite / pytest-backend (push) Failing after 4s
Test Suite / k6 /api/health Baseline (push) Has been skipped
Test Suite / playwright-smoke (push) Has been skipped
Test Suite / lint-backend (push) Successful in 1s
Test Suite / compose-smoke (push) Has been skipped
AP0.3: Capability Registry, Entitlements-Snapshot und require_capability.
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-07-04 22:54:58 +02:00

32 lines
788 B
Python

"""Tenant and actor management capabilities."""
from __future__ import annotations
from rights_registry import CapabilityRegistration, register_capability
register_capability(
CapabilityRegistration(
key="kairo.tenant.manage",
module="tenant",
description="Tenant-Einstellungen und Mandantenverwaltung",
default_grants=(
("portal", "admin"),
("tenant", "owner"),
("tenant", "admin"),
),
)
)
register_capability(
CapabilityRegistration(
key="kairo.actor.manage",
module="tenant",
description="Actors im aktiven Tenant verwalten",
default_grants=(
("portal", "admin"),
("tenant", "owner"),
("tenant", "admin"),
),
)
)