Files
odoo_source/addons/website/controllers
Romain Derie 09bb2ee066 [FIX] website: correctly check write rights of website.page
Commit [1] allowed restricted editor to use the optimize seo dialog:
- When they have write access on the record, they can fill the form and
  save changes
- when they don't have the write access, the form is in readonly and a
  warning is shown to explain it.

But a mistake was made: the restricted editor, when opening the SEO
dialog on a website.page, would receive an access error directly when
reading the SEO fields, instead of the expected readonly SEO dialog
without a save button.

Step to reproduce:
- Login with a restricted editor with no extra rights
- Go to / homepage
- Open the optimize seo dialog
- An access right error is shown

[1]: https://github.com/odoo/odoo/commit/891162574eead15cf64a4f934e5f12346cbcfbbf

closes odoo/odoo#148280

Signed-off-by: Jérémy Kersten <jke@odoo.com>
2024-01-10 05:04:31 +00:00
..