[FEATURE]: Member Resource Policies #345
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#345
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?
Description:
Add authorization policies to the Member resource using the new
HasPermissioncheck.Tasks:
lib/mv/membership/member.expoliciesblock at top of resource (before actions)Mv.Authorization.Checks.HasPermission:read→ check HasPermission for :read:create→ check HasPermission for :create:update→ check HasPermission for :update:destroy→ check HasPermission for :destroy:rolerelationship preloadedPolicy Order (Critical!):
Acceptance Criteria:
Test Strategy (TDD):
Policy Tests for :own_data (Mitglied):
Policy Tests for :read_only (Vorstand):
Policy Tests for :normal_user (Kassenwart):
Policy Tests for :admin:
Test File:
test/mv/membership/member_policies_test.exs