DEV: Remove enable_whispers site setting (#19196)

* DEV: Remove enable_whispers site setting

Whispers are enabled as long as there is at least one group allowed to
whisper, see whispers_allowed_groups site setting.

* DEV: Always enable whispers for admins if at least one group is allowed.
This commit is contained in:
Bianca Nenciu
2022-12-16 18:42:51 +02:00
committed by GitHub
parent 947711ae15
commit b80765f1f4
33 changed files with 89 additions and 76 deletions

View File

@@ -1616,7 +1616,7 @@ RSpec.describe Post do
end
it "will update topic updated_at for all topic related events" do
SiteSetting.enable_whispers = true
SiteSetting.whispers_allowed_groups = "#{Group::AUTO_GROUPS[:staff]}"
post = updates_topic_updated_at do
create_post(topic_id: topic.id, post_type: Post.types[:whisper])