[FIX] mass_mailing_custom_unsubscribe: portal user permissions

Portal users need the same permissions as public ones to read the
unsubscribe reasons.

TT54814
pull/1571/head
David 2025-02-03 12:08:13 +01:00
parent 683a615406
commit 2e5d4f2515
3 changed files with 9 additions and 0 deletions

View File

@ -1,5 +1,6 @@
id,name,model_id:id,group_id:id,perm_read,perm_write,perm_create,perm_unlink
read_unsubscription_reason_public,Public users can read unsubscription reasons,model_mail_unsubscription_reason,base.group_public,1,0,0,0
read_unsubscription_reason_portal,Portal users can read unsubscription reasons,model_mail_unsubscription_reason,base.group_portal,1,0,0,0
read_unsubscription_reason_employee,Employee users can read unsubscription reasons,model_mail_unsubscription_reason,base.group_user,1,0,0,0
write_unsubscription_reason,Mass mailing managers can manage unsubscription reasons,model_mail_unsubscription_reason,mass_mailing.group_mass_mailing_user,1,1,1,1
read_unsubscription,Marketing users can read unsubscriptions,model_mail_unsubscription,mass_mailing.group_mass_mailing_user,1,0,0,0

1 id name model_id:id group_id:id perm_read perm_write perm_create perm_unlink
2 read_unsubscription_reason_public Public users can read unsubscription reasons model_mail_unsubscription_reason base.group_public 1 0 0 0
3 read_unsubscription_reason_portal Portal users can read unsubscription reasons model_mail_unsubscription_reason base.group_portal 1 0 0 0
4 read_unsubscription_reason_employee Employee users can read unsubscription reasons model_mail_unsubscription_reason base.group_user 1 0 0 0
5 write_unsubscription_reason Mass mailing managers can manage unsubscription reasons model_mail_unsubscription_reason mass_mailing.group_mass_mailing_user 1 1 1 1
6 read_unsubscription Marketing users can read unsubscriptions model_mail_unsubscription mass_mailing.group_mass_mailing_user 1 0 0 0

View File

@ -16,6 +16,10 @@ tour.register(
test: true,
},
[
{
content: "Confirm unsubscribe",
trigger: "button:contains('Unsubscribe')",
},
{
content: "Choose other reason",
trigger: ".radio:contains('Other reason') :radio:not(:checked)",

View File

@ -16,6 +16,10 @@ tour.register(
test: true,
},
[
{
content: "Confirm unsubscribe",
trigger: "button:contains('Unsubscribe')",
},
{
content: "Choose other reason",
trigger: ".radio:contains('Other reason') :radio:not(:checked)",