Skip to content
Snippets Groups Projects
Commit 9f0ce611 authored by Martin Trigaux's avatar Martin Trigaux
Browse files

[FIX] base: ensure all attachments are in sudo


>>> u1 = self.sudo(False).browse(1)
>>> u2 = self.sudo().browse(2)
>>> (u1 + u2).env.su
False
>>> (u2 + u1).env.su
True

Ensure all attachments are always in sudo

Before this commit, a portal user could not go in debug asset

Introduced at 3a98996e

closes odoo/odoo#80754

Signed-off-by: default avatarMartin Trigaux (mat) <mat@odoo.com>
parent 2cd1b449
Branches
Tags
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment