feat: add get_role action to Authorization domain

Add get_role action for retrieving single role by ID through
code interface.
This commit is contained in:
Moritz 2026-01-06 18:37:35 +01:00
parent 557eb4d27d
commit f63405052f

View file

@ -23,6 +23,7 @@ defmodule Mv.Authorization do
resource Mv.Authorization.Role do
define :create_role, action: :create_role
define :list_roles, action: :read
define :get_role, action: :read, get_by: [:id]
define :update_role, action: :update_role
define :destroy_role, action: :destroy
end