This repository has been archived on 2023-03-18. You can view files and clone it, but cannot push or open issues or pull requests.
osr-discourse-src/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 DEV: Rename direct message related models 2022-11-03 14:39:23 +01:00
email_controller_helper DEV: Move discourse-chat to the core repo. (#18776) 2022-11-02 10:41:30 -03:00
extensions DEV: Rename direct message related models 2022-11-03 14:39:23 +01:00
onebox/templates DEV: Move discourse-chat to the core repo. (#18776) 2022-11-02 10:41:30 -03:00
tasks DEV: Move discourse-chat to the core repo. (#18776) 2022-11-02 10:41:30 -03:00
validators DEV: Move discourse-chat to the core repo. (#18776) 2022-11-02 10:41:30 -03:00
chat_channel_archive_service.rb DEV: Move discourse-chat to the core repo. (#18776) 2022-11-02 10:41:30 -03:00
chat_channel_fetcher.rb DEV: Rename direct message related models 2022-11-03 14:39:23 +01:00
chat_channel_membership_manager.rb DEV: Move discourse-chat to the core repo. (#18776) 2022-11-02 10:41:30 -03:00
chat_mailer.rb DEV: Rename direct message related models 2022-11-03 14:39:23 +01:00
chat_message_bookmarkable.rb DEV: Move discourse-chat to the core repo. (#18776) 2022-11-02 10:41:30 -03:00
chat_message_creator.rb DEV: DiscourseEvents for chat messages (#18914) 2022-11-07 19:06:10 +01:00
chat_message_processor.rb DEV: Move discourse-chat to the core repo. (#18776) 2022-11-02 10:41:30 -03:00
chat_message_rate_limiter.rb DEV: Move discourse-chat to the core repo. (#18776) 2022-11-02 10:41:30 -03:00
chat_message_reactor.rb DEV: Move discourse-chat to the core repo. (#18776) 2022-11-02 10:41:30 -03:00
chat_message_updater.rb FIX: Make ChatMessageUpdater check editing access for guardian (#18902) 2022-11-08 09:04:18 +10:00
chat_notifier.rb DEV: Move discourse-chat to the core repo. (#18776) 2022-11-02 10:41:30 -03:00
chat_review_queue.rb DEV: Move discourse-chat to the core repo. (#18776) 2022-11-02 10:41:30 -03:00
chat_seeder.rb DEV: Move discourse-chat to the core repo. (#18776) 2022-11-02 10:41:30 -03:00
chat_statistics.rb DEV: Move discourse-chat to the core repo. (#18776) 2022-11-02 10:41:30 -03:00
chat_transcript_service.rb DEV: Move discourse-chat to the core repo. (#18776) 2022-11-02 10:41:30 -03:00
direct_message_channel_creator.rb DEV: Rename direct message related models 2022-11-03 14:39:23 +01:00
duplicate_message_validator.rb DEV: Move discourse-chat to the core repo. (#18776) 2022-11-02 10:41:30 -03:00
guardian_extensions.rb DEV: Rename direct message related models 2022-11-03 14:39:23 +01:00
message_mover.rb DEV: Move discourse-chat to the core repo. (#18776) 2022-11-02 10:41:30 -03:00
post_notification_handler.rb DEV: Move discourse-chat to the core repo. (#18776) 2022-11-02 10:41:30 -03:00
secure_uploads_compatibility.rb DEV: Move discourse-chat to the core repo. (#18776) 2022-11-02 10:41:30 -03:00
slack_compatibility.rb DEV: Move discourse-chat to the core repo. (#18776) 2022-11-02 10:41:30 -03:00