Skip to content

Commit

Permalink
[FIX] mail: call check_access_rule correctly
Browse files Browse the repository at this point in the history
Before this commit there was an option to get an error because there is a space after read.
This mistake was introduced by xmo-odoo at 4435170

closes odoo/odoo#62792

Signed-off-by: Xavier Morel (xmo) <xmo@odoo.com>
  • Loading branch information
Yenthe666 committed Dec 3, 2020
1 parent 82ca855 commit 1147645
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion addons/mail/models/mail_followers.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ def _check_rights(self):
obj.check_access_rule('write')
subject = record.channel_id or record.partner_id
subject.check_access_rights('read')
subject.check_access_rule('read ')
subject.check_access_rule('read')
else:
obj.check_access_rights('read')
obj.check_access_rule('read')
Expand Down

0 comments on commit 1147645

Please sign in to comment.