Commit 145f6fd0 authored by http://jneen.net/'s avatar http://jneen.net/

protect git access through the policy infra

parent dfe41c15
...@@ -63,7 +63,7 @@ module Gitlab ...@@ -63,7 +63,7 @@ module Gitlab
private private
def no_user_or_blocked? def no_user_or_blocked?
user.nil? || user.blocked? user.nil? || !user.can?(:access_git)
end end
end end
end end
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment