summaryrefslogtreecommitdiff
path: root/addons/web/static/src/js/views/basic/basic_controller.js
diff options
context:
space:
mode:
authorMartin Trigaux <mat@odoo.com>2019-06-13 13:41:51 +0000
committerMartin Trigaux <mat@odoo.com>2019-06-13 13:54:03 +0000
commit51a535991fba335607728061f9a3439d56331890 (patch)
tree82df874688033c7cb5fb4b106c4ca4de64a41ea5 /addons/web/static/src/js/views/basic/basic_controller.js
parent324634da3debefd834b4b5dcf8509da25348324d (diff)
[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 66bd7707f5ba679ff3b87 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>
Diffstat (limited to 'addons/web/static/src/js/views/basic/basic_controller.js')
0 files changed, 0 insertions, 0 deletions