Skip to content
Snippets Groups Projects
Commit 39f9f0bd authored by Rémy Coutable's avatar Rémy Coutable
Browse files

Merge branch 'lib-differences' into 'master'

Resolve EE differences in the lib/ directory

See merge request gitlab-org/gitlab-ce!31582
parents 71d88154 a4e13a59
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -59,6 +59,7 @@ module API
}
 
override_params = import_params.delete(:override_params)
filter_attributes_using_license!(override_params) if override_params
 
project = ::Projects::GitlabProjectsImportService.new(
current_user, project_params, override_params
Loading
Loading
Loading
Loading
@@ -134,9 +134,11 @@ module Gitlab
project.repository.commit(key) if Commit.valid_hash?(key)
end
 
# rubocop: disable CodeReuse/ActiveRecord
def project_ids_relation
project
Project.where(id: project).select(:id).reorder(nil)
end
# rubocop: enabled CodeReuse/ActiveRecord
 
def filter_milestones_by_project(milestones)
return Milestone.none unless Ability.allowed?(@current_user, :read_milestone, @project)
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment