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:
authorTiago Botelho <tiagonbotelho@hotmail.com>2018-01-18 19:07:07 +0300
committerTiago Botelho <tiagonbotelho@hotmail.com>2018-02-06 16:35:35 +0300
commit35882e681b681f68a818bda9a8d2624edfecc219 (patch)
tree0688bc4a1f770c1be480c412b4553522aefe9878 /lib/gitlab/git_access.rb
parent921d2afc6989dfa8220032984f657210c07e8792 (diff)
Adds option to push over SSH to create a new project
Diffstat (limited to 'lib/gitlab/git_access.rb')
-rw-r--r--lib/gitlab/git_access.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/gitlab/git_access.rb b/lib/gitlab/git_access.rb
index 9427a5e4baa..7de8a99f9dc 100644
--- a/lib/gitlab/git_access.rb
+++ b/lib/gitlab/git_access.rb
@@ -250,7 +250,7 @@ module Gitlab
def can_create_project_in_namespace?
return unless target_namespace
- actor.can?(:create_projects, target_namespace)
+ user.can?(:create_projects, target_namespace)
end
def http?