2016-02-28 08:53:59 +00:00
|
|
|
class MainPolicy < ApplicationPolicy
|
2016-07-26 00:14:23 +00:00
|
|
|
def initialize(user, _record)
|
2016-02-28 08:53:59 +00:00
|
|
|
@user = user
|
|
|
|
@record = nil
|
|
|
|
end
|
|
|
|
|
|
|
|
def home?
|
|
|
|
true
|
|
|
|
end
|
|
|
|
|
|
|
|
def searchtopics?
|
|
|
|
true
|
|
|
|
end
|
|
|
|
|
|
|
|
def searchmaps?
|
|
|
|
true
|
|
|
|
end
|
|
|
|
|
|
|
|
def searchmappers?
|
|
|
|
true
|
|
|
|
end
|
|
|
|
|
|
|
|
def searchsynapses?
|
|
|
|
true
|
|
|
|
end
|
|
|
|
end
|