From 3b8a5d0c2e15a3d026c12d65d5d8312920950273 Mon Sep 17 00:00:00 2001 From: Connor Turland Date: Wed, 14 Dec 2016 13:23:40 -0500 Subject: [PATCH] Update message_policy.rb (#973) --- app/policies/message_policy.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/policies/message_policy.rb b/app/policies/message_policy.rb index c32e29ed..8a140788 100644 --- a/app/policies/message_policy.rb +++ b/app/policies/message_policy.rb @@ -17,7 +17,8 @@ class MessagePolicy < ApplicationPolicy delegate :show?, to: :resource_policy def create? - record.resource.present? && resource_policy.update? + # we have currently decided to let any map that is visible to someone be commented on by them + record.resource.present? && resource_policy.show? end def update?