gitlab-org--gitlab-foss/app/models/guest.rb
Douwe Maan b0bf92140f
Merge branch 'fix-unathorized-cloning' into 'security'
Ensure external users are not able to clone disabled repositories.

Closes https://gitlab.com/gitlab-org/gitlab-ce/issues/23788

See merge request !2017

Signed-off-by: Rémy Coutable <remy@rymai.me>
2016-11-09 12:27:17 +01:00

7 lines
121 B
Ruby

class Guest
class << self
def can?(action, subject)
Ability.allowed?(nil, action, subject)
end
end
end