diff options
author | Valery Sizov <vsv2711@gmail.com> | 2014-11-14 13:46:51 +0200 |
---|---|---|
committer | Valery Sizov <vsv2711@gmail.com> | 2014-11-14 13:46:51 +0200 |
commit | 80f5af48e2c66c3f61218f9c7e85f74c634ea8df (patch) | |
tree | 743748dd5efa7651e06b131ca65a190f4f9f9d46 /lib/gitlab_shell.rb | |
parent | dbdcc5f400df466944ad5e55e8e03dee55de865f (diff) | |
download | gitlab-shell-80f5af48e2c66c3f61218f9c7e85f74c634ea8df.tar.gz |
Show error message when git access is rejected
Diffstat (limited to 'lib/gitlab_shell.rb')
-rw-r--r-- | lib/gitlab_shell.rb | 2 |
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. |