Skip to content

Commit

Permalink
FIX: adding termination policy, gave 403 before
Browse files Browse the repository at this point in the history
  • Loading branch information
lukas-staab committed Mar 30, 2024
1 parent ac842b2 commit 9af468a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions app/Policies/MembershipPolicy.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,10 @@ public function edit(User $user, RoleMembership $membership, Committee $committe
return $user->can('moderator', [$committee, $community]);
}

public function terminate(User $user, RoleMembership $membership, Committee $committee, Community $community) : bool {
return $user->can('moderator', [$committee, $community]);
}

public function delete(User $user, RoleMembership $membership, Committee $committee, Community $community) : bool {
return $user->can('moderator', [$committee, $community]);
}
Expand Down

0 comments on commit 9af468a

Please sign in to comment.