summaryrefslogtreecommitdiff
path: root/addons/web/static/src/js/views/basic/basic_controller.js
diff options
context:
space:
mode:
authorNicolas Lempereur <nle@odoo.com>2017-03-03 20:40:50 +0100
committerNicolas Lempereur <nle@odoo.com>2017-03-06 16:11:19 +0100
commit2d10c5eb432412c55b452c2aea12ee473b85b92e (patch)
treeb506a9cb317708c3dfd01cb5f26e92e33e154940 /addons/web/static/src/js/views/basic/basic_controller.js
parent3d2841aac0684e71c8eda78e7dd3959062ebd9da (diff)
[FIX] website: use public user for sitemap making (up to s14)
The current user was used to generate the sitemap. So if a user with more permissions than `public user` goes on the sitemap, he could generate it (if he is the first to see it or the last generation was more than 12 hours ago (by default)) and have pages unavailables for a user with lower permission in the sitemap (until the sitemap is generated again). The issue was solved in 8.0 with d08facdcb but was introduced back in 10.0 with fd09ddb6f because the `uid` argument was dropped from `generate` method on `ModelConverter`. From 10.0 up to saas-14 the fix introduced is to use a `use_public_user` key in `request.context` but in master we will keep the fd09ddb6f fix by adding uid to the `generate` method. opw-708456 note: to forward-port only up to saas-14
Diffstat (limited to 'addons/web/static/src/js/views/basic/basic_controller.js')
0 files changed, 0 insertions, 0 deletions