From a1fcb6ffe614ef7e196c86c38634cf95af79fba3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Theys?= Date: Fri, 21 Apr 2023 07:35:02 +0000 Subject: [PATCH] [REM] mail: remove unused _default_request_uid MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit closes odoo/odoo#119301 Signed-off-by: Alexandre Kühn (aku) --- addons/mail/controllers/bus.py | 7 ------- 1 file changed, 7 deletions(-) diff --git a/addons/mail/controllers/bus.py b/addons/mail/controllers/bus.py index c5a7d6e2e21..850a56c36cf 100644 --- a/addons/mail/controllers/bus.py +++ b/addons/mail/controllers/bus.py @@ -8,13 +8,6 @@ from odoo.addons.bus.controllers.main import BusController class MailChatController(BusController): - def _default_request_uid(self): - """ For Anonymous people, they receive the access right of SUPERUSER_ID since they have NO access (auth=none) - !!! Each time a method from this controller is call, there is a check if the user (who can be anonymous and Sudo access) - can access to the resource. - """ - return request.session.uid and request.session.uid or SUPERUSER_ID - # -------------------------- # Anonymous routes (Common Methods) # --------------------------