diff options
author | Tiago Botelho <tiagonbotelho@hotmail.com> | 2018-01-18 16:07:07 +0000 |
---|---|---|
committer | Tiago Botelho <tiagonbotelho@hotmail.com> | 2018-02-06 13:35:35 +0000 |
commit | 35882e681b681f68a818bda9a8d2624edfecc219 (patch) | |
tree | 0688bc4a1f770c1be480c412b4553522aefe9878 /lib/gitlab/git_access.rb | |
parent | 921d2afc6989dfa8220032984f657210c07e8792 (diff) | |
download | gitlab-ce-35882e681b681f68a818bda9a8d2624edfecc219.tar.gz |
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.rb | 2 |
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? |