Commit 0b2db332 authored by Stan Hu's avatar Stan Hu

Inline repo_owner in app/controllers/import/bitbucket_server_controller.rb

parent eb515085
......@@ -26,9 +26,7 @@ class Import::BitbucketServerController < Import::BaseController
end
project_name = params[:new_name].presence || repo.name
repo_owner = current_user.username
namespace_path = params[:new_namespace].presence || repo_owner
namespace_path = params[:new_namespace].presence || current_user.username
target_namespace = find_or_create_namespace(namespace_path, current_user)
if current_user.can?(:create_projects, target_namespace)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment