gitlab-org--gitlab-foss/app/services/projects/group_links/create_service.rb

16 lines
334 B
Ruby
Raw Normal View History

2017-11-01 10:08:18 -04:00
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