summaryrefslogtreecommitdiff
path: root/lib/gitlab_shell.rb
diff options
context:
space:
mode:
authorValery Sizov <vsv2711@gmail.com>2014-11-24 13:58:07 +0200
committerValery Sizov <vsv2711@gmail.com>2014-11-24 13:58:07 +0200
commit961fe45c4210dcb1a69f167ac468991ad6998793 (patch)
tree484912f3b5b690c67080fd0b2d564c3dfb67924d /lib/gitlab_shell.rb
parentf8453da5868dd7a23d0f2f3da7a45e33c441d1db (diff)
downloadgitlab-shell-961fe45c4210dcb1a69f167ac468991ad6998793.tar.gz
Revert "Revert "Merge branch 'git_hook_messages'""
This reverts commit f8453da5868dd7a23d0f2f3da7a45e33c441d1db.
Diffstat (limited to 'lib/gitlab_shell.rb')
-rw-r--r--lib/gitlab_shell.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/gitlab_shell.rb b/lib/gitlab_shell.rb
index e2cb2cc..95fad9e 100644
--- a/lib/gitlab_shell.rb
+++ b/lib/gitlab_shell.rb
@@ -60,7 +60,7 @@ class GitlabShell
end
def validate_access
- api.allowed?(@git_cmd, @repo_name, @key_id, '_any')
+ api.check_access(@git_cmd, @repo_name, @key_id, '_any').allowed?
end
# This method is not covered by Rspec because it ends the current Ruby process.