summaryrefslogtreecommitdiff
path: root/app/presenters/group_member_presenter.rb
blob: 88facc3608de4bebfb30e86e5fad8109a85ee2cd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
# frozen_string_literal: true

class GroupMemberPresenter < MemberPresenter
  presents ::GroupMember

  private

  def admin_member_permission
    :admin_group_member
  end

  def update_member_permission
    :update_group_member
  end

  def destroy_member_permission
    :destroy_group_member
  end
end

GroupMemberPresenter.prepend_mod_with('GroupMemberPresenter')