discourse/plugins/chat/lib
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
..
discourse_dev
email_controller_helper
extensions
onebox/templates
tasks
validators
chat_channel_archive_service.rb
chat_channel_fetcher.rb
chat_channel_membership_manager.rb
chat_mailer.rb
chat_message_bookmarkable.rb
chat_message_creator.rb DEV: DiscourseEvents for chat messages (#18914) 2022-11-07 19:06:10 +01:00
chat_message_processor.rb
chat_message_rate_limiter.rb
chat_message_reactor.rb
chat_message_updater.rb FIX: Make ChatMessageUpdater check editing access for guardian (#18902) 2022-11-08 09:04:18 +10:00
chat_notifier.rb
chat_review_queue.rb
chat_seeder.rb
chat_statistics.rb
chat_transcript_service.rb
direct_message_channel_creator.rb
duplicate_message_validator.rb
guardian_extensions.rb
message_mover.rb
post_notification_handler.rb
secure_uploads_compatibility.rb
slack_compatibility.rb