Authorization Domain and Role Resource closes #321 #322

Merged
moritz merged 18 commits from feature/321_authorization_domain into main 2026-01-06 19:22:57 +01:00
Showing only changes of commit 37d1655227 - Show all commits

View file

@ -0,0 +1,34 @@
defmodule Mv.Authorization.PermissionSets do
@moduledoc """
Defines the four hardcoded permission sets for the application.
This is a minimal stub implementation for Issue #1. The full implementation
with all permission details will be added in Issue #2.
## Permission Sets
1. **own_data** - Default for "Mitglied" role
2. **read_only** - For "Vorstand" and "Buchhaltung" roles
3. **normal_user** - For "Kassenwart" role
4. **admin** - For "Admin" role
## Usage
# Get list of all valid permission set names
PermissionSets.all_permission_sets()
# => [:own_data, :read_only, :normal_user, :admin]
"""
@doc """
Returns the list of all valid permission set names.
## Examples
iex> PermissionSets.all_permission_sets()
[:own_data, :read_only, :normal_user, :admin]
"""
@spec all_permission_sets() :: [atom()]
def all_permission_sets do
[:own_data, :read_only, :normal_user, :admin]
end
end