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