Update message_policy.rb

This commit is contained in:
Connor Turland 2016-12-12 12:26:40 -05:00 committed by GitHub
parent 7c0e0f731f
commit 153adb1758

View file

@ -17,7 +17,8 @@ class MessagePolicy < ApplicationPolicy
delegate :show?, to: :resource_policy delegate :show?, to: :resource_policy
def create? 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 end
def update? def update?