3
0
Fork 0

Merge PR #2675 into 15.0

Signed-off-by pedrobaeza
15.0-ocabot-merge-pr-2789-by-pedrobaeza-bump-patch
OCA-git-bot 2023-11-20 18:28:13 +00:00
commit 8c2c1369f6
1 changed files with 1 additions and 1 deletions

View File

@ -79,7 +79,7 @@ class ResUsers(models.Model):
sticky=False,
target=None,
):
if not self.env.user._is_admin() and any(
if not (self.env.user._is_admin() or self.env.su) and any(
user.id != self.env.uid for user in self
):
raise exceptions.UserError(