[FIX] calendar: attendee of a private event should be able to see the content
Someone invited to an event should be able to see all details, instead of "busy" This commit closes #12935
This commit is contained in:
parent
6c0bf660b1
commit
a5dc060afb
|
@ -1705,7 +1705,8 @@ class calendar_event(osv.Model):
|
|||
for r in result:
|
||||
if r['user_id']:
|
||||
user_id = type(r['user_id']) in (tuple, list) and r['user_id'][0] or r['user_id']
|
||||
if user_id == uid:
|
||||
partner_id = self.pool['res.users'].browse(cr, uid, uid, context).partner_id.id
|
||||
if user_id == uid or partner_id in r.get("partner_ids", []):
|
||||
continue
|
||||
if r['class'] == 'private':
|
||||
for f in r.keys():
|
||||
|
|
Loading…
Reference in New Issue