2cf3fc18a6
- Create MemberPresenter alongside with GroupMemberPresenter and ProjectMemberPresenter - Make Member model Presentable - Move action_member_permission from MembersHelper into the MemberPresenter - Added rspec using double, separate specs for GroupMemberPresenter and ProjectMemberPresenter Fixes #28004. Signed-off-by: Rémy Coutable <remy@rymai.me>
15 lines
248 B
Ruby
15 lines
248 B
Ruby
class GroupMemberPresenter < MemberPresenter
|
|
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
|