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
256 B
Ruby
15 lines
256 B
Ruby
class ProjectMemberPresenter < MemberPresenter
|
|
private
|
|
|
|
def admin_member_permission
|
|
:admin_project_member
|
|
end
|
|
|
|
def update_member_permission
|
|
:update_project_member
|
|
end
|
|
|
|
def destroy_member_permission
|
|
:destroy_project_member
|
|
end
|
|
end
|