mirror of
https://github.com/discourse/discourse.git
synced 2024-11-23 02:50:00 +08:00
27f7cf18b1
Currently, when a suspended user belongs to a group PM (private message with more than two people in it) and a staff member sends a message to this group PM, then the suspended user will receive an email. This happens because a suspended user can only receive emails from staff members. But in this case, this can be seen as a bug as the expected behavior would be instead to not send any email to the suspended user. A staff member can participate in active discussions like any other member and so their messages in this context shouldn’t be treated differently than the ones from regular users. This patch addresses this issue by checking if a suspended user receives a message from a group PM or not. If that’s the case then an email won’t be sent no matter if the post originated from a staff member or not. |
||
---|---|---|
.. | ||
fabricators | ||
fixtures | ||
helpers | ||
import_export | ||
initializers | ||
integration | ||
integrity | ||
jobs | ||
lib | ||
mailers | ||
models | ||
multisite | ||
requests | ||
script/import_scripts | ||
serializers | ||
services | ||
support | ||
system | ||
tasks | ||
views | ||
rails_helper.rb | ||
regenerate_swagger_docs | ||
swagger_helper.rb |