From fea8d452b28d1ec004ae3cf9988cfbde2964c92b Mon Sep 17 00:00:00 2001 From: mcm-odoo Date: Thu, 7 Nov 2019 12:37:34 +0000 Subject: [PATCH] [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) --- .../security/im_livechat_channel_security.xml | 10 ++++++++++ addons/mail/security/mail_security.xml | 1 + 2 files changed, 11 insertions(+) diff --git a/addons/im_livechat/security/im_livechat_channel_security.xml b/addons/im_livechat/security/im_livechat_channel_security.xml index 8a2b78ce614..be4753f9d4a 100644 --- a/addons/im_livechat/security/im_livechat_channel_security.xml +++ b/addons/im_livechat/security/im_livechat_channel_security.xml @@ -20,6 +20,16 @@ + + Livechat: Administrator: read all livechat channel + + + [('channel_type', '=', 'livechat')] + + + + + 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 @@ Mail.channel: access only public and joined groups + ['|', '|', ('public', '=', 'public'), '&', ('public', '=', 'private'), ('channel_partner_ids', 'in', [user.partner_id.id]),