Purpose of this commit is to allow moderation on incoming messages in discussion channels. On some channels on which moderation is required messages should be in a pending moderation stage. Moderators can accept or refuse messages as well as always allow or ban messages coming from a given set of emails. Channels now have an option to be moderated. Moderators can be added on channels. They have access to a specific UI in Discuss to see and take action on messages waiting for moderation. Concerning mail.thread message that are pending moderation are not notified. It means nobody receives a notification about them. Moderation process calls the notification once the message is validated. Various features included in this commit : * a model is added to store the decision about emails, allow or ban; * access rights are updated so that only moderators can modify moderation fields on message; * specific bus notifications are send to moderated people as well as to moderators on incoming emails as well as when a decision is taken; * options are added on channels to send explanations to moderated emails; * options are added on channels to write and send guidelines explaining why and how moderation is performed; * a reminder is send daily to moderators with remaining messages to moderate; * discuss UI is adapted and a new channel is added below Inbox and Starred giving access to moderation tools; * chanenl UI is adapted allowing to moderate directly inside channels; This commit is linked to task ID 29521. Closes #21921.
3.7 KiB
3.7 KiB
| 1 | id | name | model_id:id | group_id:id | perm_read | perm_write | perm_create | perm_unlink |
|---|---|---|---|---|---|---|---|---|
| 2 | access_mail_message_all | mail.message.all | model_mail_message | 1 | 0 | 0 | 0 | |
| 3 | access_mail_message_portal | mail.message.portal | model_mail_message | base.group_portal | 1 | 1 | 1 | 1 |
| 4 | access_mail_message_user | mail.message.user | model_mail_message | base.group_user | 1 | 1 | 1 | 1 |
| 5 | access_mail_mail_all | mail.mail.all | model_mail_mail | 1 | 0 | 0 | 0 | |
| 6 | access_mail_mail_portal | mail.mail.portal | model_mail_mail | base.group_portal | 1 | 1 | 1 | 0 |
| 7 | access_mail_mail_user | mail.mail.user | model_mail_mail | base.group_user | 1 | 1 | 1 | 0 |
| 8 | access_mail_mail_system | mail.mail.system | model_mail_mail | base.group_system | 1 | 1 | 1 | 1 |
| 9 | access_mail_followers_all | mail.followers.all | model_mail_followers | 1 | 0 | 0 | 0 | |
| 10 | access_mail_followers_portal | mail.followers.portal | model_mail_followers | base.group_portal | 1 | 1 | 1 | 0 |
| 11 | access_mail_followers_user | mail.followers.user | model_mail_followers | base.group_user | 1 | 1 | 1 | 0 |
| 12 | access_mail_followers_system | mail.followers.system | model_mail_followers | base.group_system | 1 | 1 | 1 | 1 |
| 13 | access_mail_notification_portal | mail.notification.portal | model_mail_notification | base.group_portal | 1 | 0 | 0 | 0 |
| 14 | access_mail_notification_user | mail.notification.user | model_mail_notification | base.group_user | 1 | 1 | 1 | 0 |
| 15 | access_mail_notification_system | mail.notification.system | model_mail_notification | base.group_system | 1 | 1 | 1 | 1 |
| 16 | access_mail_channel_all | mail.group.all | model_mail_channel | 1 | 0 | 0 | 0 | |
| 17 | access_mail_channel_user | mail.group.user | model_mail_channel | base.group_user | 1 | 1 | 1 | 1 |
| 18 | access_mail_channel_partner_public | mail.channel.partner.public | model_mail_channel_partner | base.group_public | 1 | 0 | 0 | 0 |
| 19 | access_mail_channel_partner_portal | mail.channel.partner.portal | model_mail_channel_partner | base.group_portal | 1 | 1 | 1 | 1 |
| 20 | access mail_channel_partner_user | mail.channel.partner.user | model_mail_channel_partner | base.group_user | 1 | 1 | 1 | 1 |
| 21 | access_mail_moderation_user | mail.moderation.user | model_mail_moderation | base.group_user | 1 | 1 | 1 | 1 |
| 22 | access_mail_alias_all | mail.alias.all | model_mail_alias | 1 | 0 | 0 | 0 | |
| 23 | access_mail_alias_user | mail.alias.user | model_mail_alias | base.group_user | 1 | 1 | 1 | 1 |
| 24 | access_mail_alias_system | mail.alias.system | model_mail_alias | base.group_system | 1 | 1 | 1 | 1 |
| 25 | access_mail_message_subtype_all | mail.message.subtype.all | model_mail_message_subtype | 1 | 0 | 0 | 0 | |
| 26 | access_mail_message_subtype_user | mail.message.subtype.user | model_mail_message_subtype | base.group_user | 1 | 1 | 1 | 1 |
| 27 | access_mail_tracking_value_all | mail.tracking.value.all | model_mail_tracking_value | 0 | 0 | 0 | 0 | |
| 28 | access_mail_tracking_value_portal | mail.tracking.value.portal | model_mail_tracking_value | base.group_portal | 0 | 0 | 0 | 0 |
| 29 | access_mail_tracking_value_user | mail.tracking.value.user | model_mail_tracking_value | base.group_user | 0 | 0 | 0 | 0 |
| 30 | access_mail_tracking_value_system | mail.tracking.value.system | model_mail_tracking_value | base.group_system | 1 | 1 | 1 | 1 |
| 31 | access_mail_thread_all | mail.thread.all | model_mail_thread | 1 | 1 | 1 | 1 | |
| 32 | access_publisher_warranty_contract_all | publisher.warranty.contract.all | model_publisher_warranty_contract | 1 | 1 | 1 | 1 | |
| 33 | access_mail_template | mail.template | model_mail_template | base.group_user | 1 | 1 | 1 | 0 |
| 34 | access_mail_template_system | mail.template_system | model_mail_template | base.group_system | 1 | 1 | 1 | 1 |
| 35 | access_mail_shortcode | mail.shortcode | model_mail_shortcode | base.group_user | 1 | 1 | 1 | 1 |
| 36 | access_mail_shortcode_portal | mail.shortcode.portal | model_mail_shortcode | base.group_portal | 1 | 0 | 0 | 0 |
| 37 | access_mail_activity_all | mail.activity.all | model_mail_activity | 0 | 0 | 0 | 0 | |
| 38 | access_mail_activity_user | mail.activity.user | model_mail_activity | base.group_user | 1 | 1 | 1 | 1 |
| 39 | access_mail_activity_type_all | mail.activity.type.all | model_mail_activity_type | 0 | 0 | 0 | 0 | |
| 40 | access_mail_activity_type_user | mail.activity.type.user | model_mail_activity_type | base.group_user | 1 | 0 | 0 | 0 |
| 41 | access_mail_activity_type_system | mail.activity.type.system | model_mail_activity_type | base.group_system | 1 | 1 | 1 | 1 |