rosa-build/app/policies/search_policy.rb

8 lines
115 B
Ruby
Raw Normal View History

class SearchPolicy < ApplicationPolicy
def index?
APP_CONFIG['anonymous_access'] || !user.guest?
end
end