diff options
| author | Paul Morelle <pmo@odoo.com> | 2020-07-17 08:43:15 +0000 |
|---|---|---|
| committer | Paul Morelle <pmo@odoo.com> | 2020-07-17 10:14:06 +0000 |
| commit | 119637cf9e87e637f80d96ff55bc43240b19844c (patch) | |
| tree | bec86dc448f3b3705bed70e2dc6b2434b8237abe /addons/website/static | |
| parent | 2a19a83762c1bc74dd7336378d254ab6da8e3a22 (diff) | |
[FIX] models: fix permission check in export_data
The permission check in BaseModel:export_data was checking if the
current user was the administrator user, instead of checking if the
environment was administrator (i.e. it should also check if the sudo bit
is set on the environment).
This commit fixes this and allows to export_data with a simple `sudo()`
instead of needing a `with_user(SUPERUSER_ID)`.
closes odoo/odoo#54647
X-original-commit: f69f47b6ba5c6c462bf617f4876a39233f60034f
Signed-off-by: Olivier Dony (odo) <odo@openerp.com>
Signed-off-by: Paul Morelle <madprog@users.noreply.github.com>
Diffstat (limited to 'addons/website/static')
0 files changed, 0 insertions, 0 deletions
