Create Authorization Domain and Role Resource #321
Labels
No labels
bug
duplicate
enhancement
help wanted
high priority
invalid
L
low priority
M
medium priority
needs refinement
optional
question
S
UX research
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: local-it/mitgliederverwaltung#321
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Create the authorization domain in Ash with the
Roleresource. This establishes the foundation for all authorization logic.Tasks:
lib/mv/authorization/directorylib/mv/authorization/role.exAsh resource with:id(UUIDv7, primary key)name(String, unique, required) - e.g., "Vorstand", "Admin"description(String, optional)permission_set_name(String, required) - must be one of: "own_data", "read_only", "normal_user", "admin"is_system_role(Boolean, default false) - prevents deletionpermission_set_namemust exist inPermissionSets.all_permission_sets/0role_id(UUID, nullable, foreign key) touserstablebelongs_to :rolerelationship in User resourcemix ash.codegento generate migrationsAcceptance Criteria:
permission_set_nameis_system_roleflag present