{"action":"created","issue":{"url":"https://api.github.com/repos/odoo/odoo/issues/5343","labels_url":"https://api.github.com/repos/odoo/odoo/issues/5343/labels{/name}","comments_url":"https://api.github.com/repos/odoo/odoo/issues/5343/comments","events_url":"https://api.github.com/repos/odoo/odoo/issues/5343/events","html_url":"https://github.com/odoo/odoo/pull/5343","id":58050269,"number":5343,"title":"[8.0] [FIX] mail.message: checking rules on deleted records.","user":{"login":"eLBati","id":1033131,"avatar_url":"https://avatars.githubusercontent.com/u/1033131?v=3","gravatar_id":"","url":"https://api.github.com/users/eLBati","html_url":"https://github.com/eLBati","followers_url":"https://api.github.com/users/eLBati/followers","following_url":"https://api.github.com/users/eLBati/following{/other_user}","gists_url":"https://api.github.com/users/eLBati/gists{/gist_id}","starred_url":"https://api.github.com/users/eLBati/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eLBati/subscriptions","organizations_url":"https://api.github.com/users/eLBati/orgs","repos_url":"https://api.github.com/users/eLBati/repos","events_url":"https://api.github.com/users/eLBati/events{/privacy}","received_events_url":"https://api.github.com/users/eLBati/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-02-18T10:26:09Z","updated_at":"2015-09-02T17:56:16Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/odoo/odoo/pulls/5343","html_url":"https://github.com/odoo/odoo/pull/5343","diff_url":"https://github.com/odoo/odoo/pull/5343.diff","patch_url":"https://github.com/odoo/odoo/pull/5343.patch"},"body":"This change avoids to raise 'Access Denied' when accessing to messages related to deleted documents, which user had access right on.\r\n\r\nExample: user A can see messages related to sale.order SO1, even if A is not directly notified.\r\nSomeone deletes SO1.\r\n'A' opens 'inbox', 'check_access_rule' is called, 'mids' is empty, 'document_related_ids' is empty, 'other_ids' is not empy -> exception is raised"},"comment":{"url":"https://api.github.com/repos/odoo/odoo/issues/comments/137190419","html_url":"https://github.com/odoo/odoo/pull/5343#issuecomment-137190419","issue_url":"https://api.github.com/repos/odoo/odoo/issues/5343","id":137190419,"user":{"login":"rafaelbn","id":8736623,"avatar_url":"https://avatars.githubusercontent.com/u/8736623?v=3","gravatar_id":"","url":"https://api.github.com/users/rafaelbn","html_url":"https://github.com/rafaelbn","followers_url":"https://api.github.com/users/rafaelbn/followers","following_url":"https://api.github.com/users/rafaelbn/following{/other_user}","gists_url":"https://api.github.com/users/rafaelbn/gists{/gist_id}","starred_url":"https://api.github.com/users/rafaelbn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rafaelbn/subscriptions","organizations_url":"https://api.github.com/users/rafaelbn/orgs","repos_url":"https://api.github.com/users/rafaelbn/repos","events_url":"https://api.github.com/users/rafaelbn/events{/privacy}","received_events_url":"https://api.github.com/users/rafaelbn/received_events","type":"User","site_admin":false},"created_at":"2015-09-02T17:56:16Z","updated_at":"2015-09-02T17:56:16Z","body":"Hi @eLBati could you answer @beledouxdenis ? We have same issue and it could be nice if Odoo accept this PR. Thanks!"}}