mirror of
https://github.com/discourse/discourse.git
synced 2025-05-23 23:21:11 +08:00
FIX: correctly shows as disabled a user who can't chat (#26010)
Prior to this fix we were checking if user was not part of a group which allows to chat, but we were not checking if this user was part of groups who can use direct messages.
This commit is contained in:
@ -4,6 +4,7 @@ RSpec.describe "Outgoing chat webhooks" do
|
||||
before do
|
||||
SiteSetting.chat_enabled = true
|
||||
SiteSetting.chat_allowed_groups = Group::AUTO_GROUPS[:everyone]
|
||||
SiteSetting.direct_message_enabled_groups = Group::AUTO_GROUPS[:everyone]
|
||||
end
|
||||
|
||||
describe "chat messages" do
|
||||
|
Reference in New Issue
Block a user