From 57eb08beab177d67a49b6d50b9be0927192d86de Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thibault=20Delavall=C3=A9e?= Date: Thu, 27 Dec 2012 17:44:25 +0100 Subject: [PATCH] [REM] mail_followers: removed unnecessary code about notifications for messages we cannot read, because this makes no sense with our access rules (you see when you have a notification -> mutualy exclusive). bzr revid: tde@openerp.com-20121227164425-gvxrcq5rgk51k532 --- addons/mail/mail_followers.py | 7 ------- 1 file changed, 7 deletions(-) diff --git a/addons/mail/mail_followers.py b/addons/mail/mail_followers.py index 66da33d35f0..ec9bc86d6c5 100644 --- a/addons/mail/mail_followers.py +++ b/addons/mail/mail_followers.py @@ -75,13 +75,6 @@ class mail_notification(osv.Model): if not cr.fetchone(): cr.execute('CREATE INDEX mail_notification_partner_id_read_starred_message_id ON mail_notification (partner_id, read, starred, message_id)') - def create(self, cr, uid, vals, context=None): - """ Override of create to check that we can not create a notification - for a message the user can not read. """ - if self.pool.get('mail.message').check_access_rights(cr, uid, 'read'): - return super(mail_notification, self).create(cr, uid, vals, context=context) - return False - def get_partners_to_notify(self, cr, uid, message, context=None): """ Return the list of partners to notify, based on their preferences.