Welcome to mirror list, hosted at ThFree Co, Russian Federation.

project_group_link_entity.rb « group_link « serializers « app - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: c667bcd5bf474bf08a49dabb2dd8a63f742ca6df (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
# frozen_string_literal: true

module GroupLink
  class ProjectGroupLinkEntity < GroupLink::GroupLinkEntity
    include RequestAwareEntity

    expose :source do |group_link|
      ProjectEntity.represent(group_link.shared_from, only: [:id, :full_name])
    end

    private

    def admin_permission_name
      :admin_project_member
    end
  end
end