-
- Downloads
[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>
Loading
Please register or sign in to comment