Update message_policy.rb (#973)
This commit is contained in:
parent
6f88c2a7eb
commit
3b8a5d0c2e
1 changed files with 2 additions and 1 deletions
|
@ -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?
|
||||
|
|
Loading…
Reference in a new issue