summaryrefslogtreecommitdiff
path: root/addons/web
diff options
context:
space:
mode:
Diffstat (limited to 'addons/web')
-rw-r--r--addons/web/models/base_document_layout.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/addons/web/models/base_document_layout.py b/addons/web/models/base_document_layout.py
index 47ccd2114e9..8d26f61e2f7 100644
--- a/addons/web/models/base_document_layout.py
+++ b/addons/web/models/base_document_layout.py
@@ -216,7 +216,9 @@ class BaseDocumentLayout(models.TransientModel):
def action_open_base_document_layout(self, action_ref=None):
if not action_ref:
action_ref = 'web.action_base_document_layout_configurator'
- return self.env["ir.actions.actions"]._for_xml_id(action_ref)
+ res = self.env["ir.actions.actions"]._for_xml_id(action_ref)
+ self.env[res["res_model"]].check_access_rights('write')
+ return res
def document_layout_save(self):
# meant to be overridden