users should be able to star others maps

This commit is contained in:
Connor Turland 2016-08-20 21:50:50 -04:00 committed by GitHub
parent 69cff163dc
commit 919532af81

View file

@ -62,7 +62,7 @@ class MapPolicy < ApplicationPolicy
end end
def unstar? def unstar?
user.present? && record.user == user user.present?
end end
def screenshot? def screenshot?