From 919532af812c0bd3d7c929869fda7623a6644c5a Mon Sep 17 00:00:00 2001 From: Connor Turland Date: Sat, 20 Aug 2016 21:50:50 -0400 Subject: [PATCH] users should be able to star others maps --- app/policies/map_policy.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/policies/map_policy.rb b/app/policies/map_policy.rb index ad533667..bf511869 100644 --- a/app/policies/map_policy.rb +++ b/app/policies/map_policy.rb @@ -62,7 +62,7 @@ class MapPolicy < ApplicationPolicy end def unstar? - user.present? && record.user == user + user.present? end def screenshot?