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
Co-authored-by: Cursor <cursoragent@cursor.com>
32 lines
788 B
Python
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"),
|
|
),
|
|
)
|
|
)
|