debian-mirror-gitlab/app/serializers/group_link/group_group_link_entity.rb
2022-06-21 17:19:12 +05:30

17 lines
356 B
Ruby

# frozen_string_literal: true
module GroupLink
class GroupGroupLinkEntity < GroupLink::GroupLinkEntity
include RequestAwareEntity
expose :source do |group_link|
GroupEntity.represent(group_link.shared_from, only: [:id, :full_name, :web_url])
end
private
def admin_permission_name
:admin_group_member
end
end
end