FEATURE: Allow List for PMs (#10270)

* FEATURE: Allow List for PMs

This feature adds a new user setting that is disabled by default that
allows them to specify a list of users that are allowed to send them
private messages. This way they don't have to maintain a large list of
users they don't want to here from and instead just list the people they
know they do want. Staff will still always be able to send messages to
the user.

* Update PR based on feedback
This commit is contained in:
Blake Erickson
2020-07-20 15:23:49 -06:00
committed by GitHub
parent 2abfd30d22
commit 690f17bcbe
19 changed files with 316 additions and 5 deletions

View File

@ -23,7 +23,7 @@ RSpec.describe WebHookUserSerializer do
it 'should only include the required keys' do
count = serializer.as_json.keys.count
difference = count - 46
difference = count - 47
expect(difference).to eq(0), lambda {
message = (difference < 0 ?