gitlab-org--gitlab-foss/app/models/guest.rb
2018-07-26 16:55:41 -07:00

9 lines
162 B
Ruby

# frozen_string_literal: true
class Guest
class << self
def can?(action, subject = :global)
Ability.allowed?(nil, action, subject)
end
end
end