Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2018-07-05 12:54:46 +0300
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2018-07-11 12:22:57 +0300
commit1885a3014cf84e460693a2ff97562328b152d26f (patch)
tree72db3fa8d66581119643bf024f6b59655a9b73fd /app/controllers/import
parentc1af6e4b13a283fa908fa2244c33fd5abd8bb83c (diff)
Fix tests in import_sources_spec.rb
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
Diffstat (limited to 'app/controllers/import')
-rw-r--r--app/controllers/import/manifest_controller.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/import/manifest_controller.rb b/app/controllers/import/manifest_controller.rb
index 2daf57986f3..639431690bb 100644
--- a/app/controllers/import/manifest_controller.rb
+++ b/app/controllers/import/manifest_controller.rb
@@ -20,7 +20,7 @@ class Import::ManifestController < Import::BaseController
unless can?(current_user, :create_projects, group)
@errors = ["You don't have enough permissions to create projects in the selected group"]
- render :new and return
+ render :new && return
end
manifest = Gitlab::ManifestImport::Manifest.new(params[:manifest].tempfile)