odoo/odoo#98347

Created by daonamutc1

Blocked

  • Merge method
  • Review
  • CI
label
daonamutc1:v15_fix_mail
head
4f933229efe74b044f7b18240be104e11e5fde71
target
15.0

[FIX] mail: fix error open starred

- When a user stars messages from a channel and messages from an unauthorized document.
- The check_access_rule function does not filter messages on the channel. This function then checks the read permission of the document. And raise an error
- This commit will remove the messages that have been checked above from the document_related_candidate_ids list




https://user-images.githubusercontent.com/55737816/185335551-a46ef072-eb78-4b15-ad82-00b013cbb177.mov



--
I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr