gitlab-org--gitlab-foss/app/presenters/project_member_presenter.rb

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

22 lines
382 B
Ruby
Raw Normal View History

# frozen_string_literal: true
class ProjectMemberPresenter < MemberPresenter
presents ::ProjectMember
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
ProjectMemberPresenter.prepend_mod_with('ProjectMemberPresenter')