From 80f5af48e2c66c3f61218f9c7e85f74c634ea8df Mon Sep 17 00:00:00 2001 From: Valery Sizov Date: Fri, 14 Nov 2014 13:46:51 +0200 Subject: Show error message when git access is rejected --- lib/gitlab_shell.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/gitlab_shell.rb') 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. -- cgit v1.2.1