summaryrefslogtreecommitdiff
path: root/addons/mail/static/src/components/activity/activity.js
diff options
context:
space:
mode:
authorMartin Trigaux <mat@odoo.com>2020-08-31 08:08:21 +0000
committerMartin Trigaux <mat@odoo.com>2020-09-01 11:33:46 +0000
commit57665a02f7b4cd113f8f40ec47c58a518fe8669c (patch)
tree38a6e955209169d794e1eb672f5a7796f50a13a3 /addons/mail/static/src/components/activity/activity.js
parent4fc8374ee4470a05b27216999e341418e72f28ea (diff)
[FIX] base: keep evaluation context unchanged
Before this commit, the evaluation context was forced with sudo(False) as the call to _render_qweb_html was made with sudo(True). The sudo was removed to prevent rendering a report on any object. This was problematic for reports such as sale.order portal page where the public user does not have access to the record but uses a custom verification mechanism using an access_token field and then calling _render with sudo. This commit moves the sudo call to keep the _get_evaluation_context with the same environment and allow to call _render with sudo Add tests with sale portal building the report as low-priviledge user closes odoo/odoo#56806 Related: odoo/enterprise#12795 Signed-off-by: Martin Trigaux (mat) <mat@odoo.com>
Diffstat (limited to 'addons/mail/static/src/components/activity/activity.js')
0 files changed, 0 insertions, 0 deletions