2021-03-11 19:13:27 +05:30
|
|
|
# frozen_string_literal: true
|
|
|
|
|
|
|
|
module GroupLink
|
|
|
|
class GroupGroupLinkEntity < GroupLink::GroupLinkEntity
|
|
|
|
include RequestAwareEntity
|
|
|
|
|
2022-06-21 17:19:12 +05:30
|
|
|
expose :source do |group_link|
|
|
|
|
GroupEntity.represent(group_link.shared_from, only: [:id, :full_name, :web_url])
|
2021-03-11 19:13:27 +05:30
|
|
|
end
|
|
|
|
|
|
|
|
private
|
|
|
|
|
2022-06-21 17:19:12 +05:30
|
|
|
def admin_permission_name
|
|
|
|
:admin_group_member
|
2021-03-11 19:13:27 +05:30
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|