gitlab-org--gitlab-foss/app/models/guest.rb
http://jneen.net/ 846e581732 use a magic default :global symbol instead of nil
to make sure we mean the global permissions
2017-03-09 11:49:52 -08:00

7 lines
131 B
Ruby

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