discourse/plugins/chat/spec/requests
Martin Brennan c66743ee3d
FIX: Make ChatMessageUpdater check editing access for guardian (#18902)
Follow up to 766bcbc684

This fixes a gaffe from that commit where I passed in the
guardian to ChatMessageUpdater but then forgot to remove
the old way of setting the guardian and user instance variables
from the chat_message that was passed in.

Also, it moves the ensure_can_edit_message! check from the
controller into ChatMessageUpdater so all the access
checks are in the same place.
2022-11-08 09:04:18 +10:00
..
admin
api
chat_channel_controller_spec.rb
chat_controller_spec.rb FIX: Make ChatMessageUpdater check editing access for guardian (#18902) 2022-11-08 09:04:18 +10:00
direct_messages_controller_spec.rb
email_controller_spec.rb
emojis_controller_spec.rb
incoming_chat_webhooks_controller_spec.rb
users_controller_spec.rb