summaryrefslogtreecommitdiff
path: root/addons/mail/models/mail_thread.py
diff options
context:
space:
mode:
authorOdoo's Mergebot <xmo+roboto@odoo.com>2020-02-05 13:12:46 +0100
committerGitHub <noreply@github.com>2020-02-05 13:12:46 +0100
commit474643b1c1341d8f5956e7a18bfde14ff0e9d662 (patch)
tree2d468f56543b24d178dc18ee83b3e338b802eb34 /addons/mail/models/mail_thread.py
parentec2b5b4bc7cea0c01cb0d19783f8b6761564db55 (diff)
parent65530dfd6a0486f44134917f5cc42a2c30b95762 (diff)
[MERGE] base: use ir.model.access on TransientModels
Before this commit, models with the `_transient` flag were ignored in ir.model.access verifications. Only an implicit ir.rule with the domain (create_uid=user.id) was applied to avoid most side effects. The problem is that, often, the security does not lie in side-effects of abusing of somebody else's wizard record but in the fact that the wizard methods blindly trust only the right users are creating these records. Too often, too many sudo were used and creating wizard with chosen values could lead to an abuse scenario. Instead, explicitly require the developer to declare security rules the same way as on any other model. closes odoo/odoo#43306 Task-id: 1863044 Pad: https://pad.odoo.com/p/r.c1befa51103ed3b955a427971eb19719 Signed-off-by: Martin Trigaux (mat) <mat@odoo.com>
Diffstat (limited to 'addons/mail/models/mail_thread.py')
0 files changed, 0 insertions, 0 deletions