diff options
| author | Martin Trigaux <mat@odoo.com> | 2020-01-13 15:18:36 +0100 |
|---|---|---|
| committer | Martin Trigaux <mat@odoo.com> | 2020-02-04 17:53:48 +0100 |
| commit | 6d8688bb124df311648f65f6d43608ee22d5f63b (patch) | |
| tree | 8731019c78312c44bc55db3f37dd1c6f840f0e21 /addons | |
| parent | ce7cc63b58994885ce1ac1391e2b135a81630b20 (diff) | |
[IMP] base: use ir.model.access on transient models
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.
Diffstat (limited to 'addons')
0 files changed, 0 insertions, 0 deletions
