Update message_policy.rb (#973)

This commit is contained in:
Connor Turland 2016-12-14 13:23:40 -05:00 committed by GitHub
parent 6f88c2a7eb
commit 3b8a5d0c2e

View file

@ -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?