Files
odoo_source/addons/mail/models
Martin Trigaux 51a535991f [FIX] mail: do not force changing mailing lists privacy
Changing the 'public' attribute of a mailing list to "Public" (e.g. to publish
it on /groups page), was triggering the _onchange_public which changed the
visibility of the mail.alias to public.

This was incorrect as a channel may be public but it does not means everybody
should be able to post in it. It is still possible to restrict the access to
specific members only (and it is probably a good reason to avoid spam).

The intention of 66bd7707f5 was to protect the private channels
by default but had the opposite effect if the visibility was changed.

Changed the onchange evaluation to only restrict the access when unpublishing
a channel but do not force it at public.

Context: unpublishing and republishing a mailing list had the effect to change
the alias privacy to 'everyone' and we received spam

closes odoo/odoo#34105

Signed-off-by: Martin Trigaux (mat) <mat@odoo.com>
2019-06-13 13:54:03 +00:00
..