Skip to content

Commit

Permalink
Return all mail.messages if access_right_uid is SUPERUSER_ID
Browse files Browse the repository at this point in the history
  • Loading branch information
codingforfun committed Aug 17, 2016
1 parent d448cc5 commit 5406ce2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion addons/mail/mail_message.py
Expand Up @@ -618,7 +618,7 @@ def _search(self, cr, uid, args, offset=0, limit=None, order=None,
- otherwise: remove the id
"""
# Rules do not apply to administrator
if uid == SUPERUSER_ID:
if SUPERUSER_ID in (uid, access_rights_uid):
return super(mail_message, self)._search(
cr, uid, args, offset=offset, limit=limit, order=order,
context=context, count=count, access_rights_uid=access_rights_uid)
Expand Down

0 comments on commit 5406ce2

Please sign in to comment.