OCA / data-protection

Data Protection
https://github.com/OCA/data-protection/wiki
GNU Affero General Public License v3.0
31 stars 68 forks source link

[FIX] privacy_consent: ensure there's always a request user #50

Closed yajo closed 3 years ago

yajo commented 3 years ago

As the controller is auth="none", sometimes there's no user. This wasn't a problem on v12 where sudo() applied SUPERUSER_ID by default (below, line 35). In v13 we need to add it manually to avoid some situations where self.env.uid == False.

@Tecnativa

pedrobaeza commented 3 years ago

/ocabot merge patch

OCA-git-bot commented 3 years ago

This PR looks fantastic, let's merge it! Prepared branch 13.0-ocabot-merge-pr-50-by-pedrobaeza-bump-patch, awaiting test results.

OCA-git-bot commented 3 years ago

Congratulations, your PR was merged at 74c3f38e740f66e0eb4b176d739362e7d44e301b. Thanks a lot for contributing to OCA. ❤️