39 lines
1.1 KiB
Python
39 lines
1.1 KiB
Python
|
|
from rights_registry import CapabilityRegistration, register_capability
|
||
|
|
|
||
|
|
register_capability(
|
||
|
|
CapabilityRegistration(
|
||
|
|
id="club.creation_request.create",
|
||
|
|
name="Vereinsgründung beantragen",
|
||
|
|
domain="club",
|
||
|
|
module="club_creation_requests",
|
||
|
|
min_account_state="verified_pending_club",
|
||
|
|
)
|
||
|
|
)
|
||
|
|
register_capability(
|
||
|
|
CapabilityRegistration(
|
||
|
|
id="club.creation_request.read_own",
|
||
|
|
name="Eigene Gründungsanträge",
|
||
|
|
domain="club",
|
||
|
|
module="club_creation_requests",
|
||
|
|
min_account_state="verified_pending_club",
|
||
|
|
)
|
||
|
|
)
|
||
|
|
register_capability(
|
||
|
|
CapabilityRegistration(
|
||
|
|
id="club.creation_request.withdraw",
|
||
|
|
name="Gründungsantrag zurückziehen",
|
||
|
|
domain="club",
|
||
|
|
module="club_creation_requests",
|
||
|
|
min_account_state="verified_pending_club",
|
||
|
|
)
|
||
|
|
)
|
||
|
|
register_capability(
|
||
|
|
CapabilityRegistration(
|
||
|
|
id="platform.club_creation.approve",
|
||
|
|
name="Vereinsgründung freigeben",
|
||
|
|
domain="platform",
|
||
|
|
module="club_creation_requests",
|
||
|
|
min_account_state="platform_admin",
|
||
|
|
)
|
||
|
|
)
|