This commit is contained in:
Devin Howard 2016-09-24 12:35:06 +08:00
parent b722d2d3b0
commit 3f9077b380

View file

@ -41,10 +41,6 @@ class MapPolicy < ApplicationPolicy
user.present? && record.user == user user.present? && record.user == user
end end
def activemaps?
user.blank? # redirect to root url if authenticated for some reason
end
def contains? def contains?
show? show?
end end
@ -57,14 +53,6 @@ class MapPolicy < ApplicationPolicy
show? show?
end end
def featuredmaps?
true
end
def mymaps?
user.present?
end
def star? def star?
unstar? unstar?
end end
@ -76,8 +64,4 @@ class MapPolicy < ApplicationPolicy
def screenshot? def screenshot?
update? update?
end end
def usermaps?
true
end
end end