block user should not be able to push

This commit is contained in:
Dmitriy Zaporozhets 2013-03-07 14:18:30 +02:00
parent 9c2a6e2013
commit d2cec12632
2 changed files with 52 additions and 28 deletions

View file

@ -20,6 +20,9 @@ module Gitlab
project == key.project && git_cmd == 'git-upload-pack'
else
user = key.user
return false if user.blocked?
action = case git_cmd
when 'git-upload-pack'
then :download_code