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"),
|
||
|
|
),
|
||
|
|
)
|
||
|
|
)
|