DEV: Move min_trust_to_post_embedded_media to group setting (#25238)

c.f. https://meta.discourse.org/t/we-are-changing-giving-access-to-features/283408
This commit is contained in:
Martin Brennan
2024-01-25 09:50:59 +10:00
committed by GitHub
parent cf25fab9b0
commit 0e50f88212
22 changed files with 374 additions and 171 deletions
+2 -2
View File
@@ -191,7 +191,8 @@ RSpec.describe UserSearch do
end
it "only reveals topic participants to people with permission" do
pm_topic = Fabricate(:private_message_post).topic
pm_topic =
Fabricate(:private_message_post, user: Fabricate(:user, refresh_auto_groups: true)).topic
# Anonymous, does not have access
expect do search_for("", topic_id: pm_topic.id) end.to raise_error(Discourse::InvalidAccess)
@@ -201,7 +202,6 @@ RSpec.describe UserSearch do
Discourse::InvalidAccess,
)
Group.refresh_automatic_groups!
pm_topic.invite(pm_topic.user, mr_b.username)
results = search_for("", topic_id: pm_topic.id, searching_user: mr_b)