summaryrefslogtreecommitdiff
path: root/addons/mail/security
diff options
context:
space:
mode:
authormcm-odoo <mcm@odoo.com>2019-11-07 12:37:34 +0000
committermcm-odoo <mcm@odoo.com>2019-11-22 14:27:10 +0000
commitfea8d452b28d1ec004ae3cf9988cfbde2964c92b (patch)
tree6cc3b4bb14dae4f0b07516858c26da6c3f4ddfff /addons/mail/security
parent3cf3c2dbd40a8725284608f7b9cdffd65b0c7cc0 (diff)
[FIX] im_livechat: allow manager to read all sessions
Managers could see only their sessions like other operators. Now they can see all the sessions so they can check and help the operators. task-2048498 closes odoo/odoo#41175 X-original-commit: 6ae791335a1986aa4cc72f7ed9aadd471c1774c5 Signed-off-by: Thibault Delavallee (tde) <tde@openerp.com>
Diffstat (limited to 'addons/mail/security')
-rw-r--r--addons/mail/security/mail_security.xml1
1 files changed, 1 insertions, 0 deletions
diff --git a/addons/mail/security/mail_security.xml b/addons/mail/security/mail_security.xml
index f4493dad93a..3ffe43e35eb 100644
--- a/addons/mail/security/mail_security.xml
+++ b/addons/mail/security/mail_security.xml
@@ -5,6 +5,7 @@
<record id="mail_channel_rule" model="ir.rule">
<field name="name">Mail.channel: access only public and joined groups</field>
<field name="model_id" ref="model_mail_channel"/>
+ <field name="groups" eval="[(4, ref('base.group_user')), (4, ref('base.group_portal')), (4, ref('base.group_public'))]"/>
<field name="domain_force">['|', '|',
('public', '=', 'public'),
'&amp;', ('public', '=', 'private'), ('channel_partner_ids', 'in', [user.partner_id.id]),