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:
Joffrey JAFFEUX
2024-03-05 09:13:42 +01:00
committed by GitHub
parent 00e76efb7c
commit 27407a25b4
7 changed files with 49 additions and 9 deletions

View File

@ -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