projects
/
odoo
/
odoo.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e275f37
)
[FIX] access rights
author
Fabien Pinckaers
<fp@openerp.com>
Tue, 2 Oct 2012 22:12:31 +0000
(
00:12
+0200)
committer
Fabien Pinckaers
<fp@openerp.com>
Tue, 2 Oct 2012 22:12:31 +0000
(
00:12
+0200)
bzr revid: fp@openerp.com-
20121002221231
-vtqfgu536tgs00n4
addons/mail/mail_thread.py
patch
|
blob
|
history
diff --git
a/addons/mail/mail_thread.py
b/addons/mail/mail_thread.py
index
0029dc7
..
7888548
100644
(file)
--- a/
addons/mail/mail_thread.py
+++ b/
addons/mail/mail_thread.py
@@
-706,7
+706,7
@@
class mail_thread(osv.AbstractModel):
""" Wrapper on message_subscribe, using users. If user_ids is not
provided, subscribe uid instead. """
if not user_ids:
- user_ids = [uid]
+ return False
partner_ids = [user.partner_id.id for user in self.pool.get('res.users').browse(cr, uid, user_ids, context=context)]
return self.message_subscribe(cr, uid, ids, partner_ids, subtype_ids=subtype_ids, context=context)