mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
DEV: Remove usages of enable_personal_messages (#18437)
cf. e62e93f83a
This PR also makes it so `bot` (negative ID) and `system` users are always allowed
to send PMs, since the old conditional was just based on `enable_personal_messages`
This commit is contained in:
@@ -635,7 +635,6 @@ RSpec.describe GroupsController do
|
||||
expect(body["messageable"]).to eq(true)
|
||||
|
||||
SiteSetting.personal_message_enabled_groups = Group::AUTO_GROUPS[:staff]
|
||||
SiteSetting.enable_personal_messages = false
|
||||
|
||||
get "/groups/#{group.name}/messageable.json"
|
||||
expect(response.status).to eq(200)
|
||||
|
||||
Reference in New Issue
Block a user