summaryrefslogtreecommitdiff
path: root/addons/web/static/src/less/fields_extra.less
diff options
context:
space:
mode:
authorrde <rde@odoo.com>2017-09-27 10:56:19 +0200
committerJeremy Kersten <jke@odoo.com>2017-09-27 21:33:49 +0200
commitfa23bb85863c2777689e76e517685db44ab4df9a (patch)
tree2c261d71a52419b60ffb085ac6140c063d1be644 /addons/web/static/src/less/fields_extra.less
parent1b52b00d2aa96b9360d50a0f0960f1febb5e607e (diff)
[FIX] website: unpublished page present in menu throws an error if public user
Before this commit, an unpublished page present in menu would throw an error for public user (group_portal & group_public) because of the security record rule set on website.page model not allowing read access to unpublished pages: <field name="domain_force">[('website_published', '=', True)]</field> In this particular case, we try to retrieve the menu URL, but since the URL is retrieved through its (m2o) website.page, it would cause an error. Now, it the menu has a website.page unpublished, we will correctly retrieve its URL (sudo) and it won't crash.
Diffstat (limited to 'addons/web/static/src/less/fields_extra.less')
0 files changed, 0 insertions, 0 deletions