discourse/plugins/chat/spec/models/chat
Joffrey JAFFEUX 26c8eab1f3
FIX: allows bots to create/update/stream messages (#26900)
Prior to this commit, only system users had this pass.

Another significant change of the PR, is to make membership of a channel the angular stone of the permission check to create/update/stop streaming a message. The idea being, if you are a member of a channel already we don't need to check if you can join it AGAIN.

We also have `Chat::AutoRemove::HandleCategoryUpdated` which will deal with permissions change so it's simpler and less prone to error to consider the membership as the only source of truth.
2024-05-07 15:17:42 +02:00
..
category_channel_spec.rb DEV: add maxlength to additional chat text columns (#23505) 2023-09-12 14:52:50 +08:00
channel_archive_spec.rb DEV: add maxlength to additional chat text columns (#23505) 2023-09-12 14:52:50 +08:00
channel_spec.rb FIX: ensures an empty last message won't cause errors (#23647) 2023-09-25 12:43:04 +02:00
direct_message_channel_spec.rb DEV: add maxlength to additional chat text columns (#23505) 2023-09-12 14:52:50 +08:00
direct_message_spec.rb DEV: Remove unnecessary rails_helper requiring (#26364) 2024-03-26 11:32:01 +01:00
draft_spec.rb
incoming_webhook_spec.rb DEV: add maxlength to additional chat text columns (#23505) 2023-09-12 14:52:50 +08:00
message_reaction_spec.rb DEV: add maxlength to additional chat text columns (#23505) 2023-09-12 14:52:50 +08:00
message_revision_spec.rb DEV: add maxlength limits to chat messages and revisions (#23530) 2023-09-12 18:02:04 +08:00
message_spec.rb FIX: allows bots to create/update/stream messages (#26900) 2024-05-07 15:17:42 +02:00
null_message_spec.rb FIX: build chat message excerpt for thread preview (#26765) 2024-04-26 14:29:35 +08:00
null_user_spec.rb DEV: Remove unnecessary rails_helper requiring (#26364) 2024-03-26 11:32:01 +01:00
reviewable_chat_message_spec.rb DEV: Remove unnecessary rails_helper requiring (#26364) 2024-03-26 11:32:01 +01:00
thread_spec.rb DEV: Remove experimental site setting for chat threads (#22720) 2023-07-26 12:46:23 +02:00
user_chat_thread_membership_spec.rb DEV: Create UserChatThreadMembership table and model (#21481) 2023-05-10 17:19:48 +02:00