Files
odoo_source/addons/website_livechat
tsm-odoo c79016fbc6 [FIX] website_livechat: access error when closing empty chat window
Before this commit, closing an empty chat window with a non admin user
would have led to an access error popup.

Indeed, the `website_livechat` modules overrides the `_execute_channel_pin`
method of the `mail.channel` model in order to unlink the channel if no
messages were sent. The issue is that only the administrator is allowed
to delete channels.

This commit fixes this issue.

task-3028153

closes odoo/odoo#103656

X-original-commit: ece201874a75256c2286f85d1657c518b3a55ddb
Signed-off-by: Alexandre Kühn (aku) <aku@odoo.com>
Signed-off-by: Stockbauer Matthieu (tsm) <tsm@odoo.com>
2022-10-20 16:15:59 +02:00
..
…
…