protect git access through the policy infra
This commit is contained in:
parent
dfe41c1556
commit
145f6fd0b9
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue