2018-11-18 11:00:15 +05:30
|
|
|
# frozen_string_literal: true
|
|
|
|
|
2018-03-17 18:26:18 +05:30
|
|
|
module Projects
|
|
|
|
module GroupLinks
|
|
|
|
class CreateService < BaseService
|
|
|
|
def execute(group)
|
|
|
|
return false unless group
|
|
|
|
|
|
|
|
project.project_group_links.create(
|
|
|
|
group: group,
|
|
|
|
group_access: params[:link_group_access],
|
|
|
|
expires_at: params[:expires_at]
|
|
|
|
)
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|