8 lines
115 B
Ruby
8 lines
115 B
Ruby
|
class SearchPolicy < ApplicationPolicy
|
||
|
|
||
|
def index?
|
||
|
APP_CONFIG['anonymous_access'] || !user.guest?
|
||
|
end
|
||
|
|
||
|
end
|