2021-01-22 12:08:52 +00:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
|
|
|
module GroupLink
|
|
|
|
class ProjectGroupLinkEntity < GroupLink::GroupLinkEntity
|
|
|
|
include RequestAwareEntity
|
|
|
|
|
2022-04-12 09:08:22 +00:00
|
|
|
expose :source do |group_link|
|
|
|
|
ProjectEntity.represent(group_link.shared_from, only: [:id, :full_name])
|
2021-01-22 12:08:52 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
private
|
|
|
|
|
2022-04-12 09:08:22 +00:00
|
|
|
def admin_permission_name
|
|
|
|
:admin_project_member
|
2021-01-22 12:08:52 +00:00
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|