summaryrefslogtreecommitdiff
path: root/app/controllers
diff options
context:
space:
mode:
Diffstat (limited to 'app/controllers')
-rw-r--r--app/controllers/import/base_controller.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/controllers/import/base_controller.rb b/app/controllers/import/base_controller.rb
index 1b08262f3cd..16e8cac2699 100644
--- a/app/controllers/import/base_controller.rb
+++ b/app/controllers/import/base_controller.rb
@@ -5,10 +5,10 @@ class Import::BaseController < ApplicationController
return current_user.namespace if names == owner
return current_user.namespace unless current_user.can_create_group?
+ names = params[:target_namespace].presence || names
full_path_namespace = Namespace.find_by_full_path(names)
- return full_path_namespace if full_path_namespace
- names = params[:target_namespace].presence || names
+ return full_path_namespace if full_path_namespace
names.split('/').inject(nil) do |parent, name|
begin