protect git access through the policy infra

This commit is contained in:
http://jneen.net/ 2017-02-28 13:37:35 -08:00
parent dfe41c1556
commit 145f6fd0b9
1 changed files with 1 additions and 1 deletions

View File

@ -63,7 +63,7 @@ module Gitlab
private
def no_user_or_blocked?
user.nil? || user.blocked?
user.nil? || !user.can?(:access_git)
end
end
end