summaryrefslogtreecommitdiff
path: root/addons/website/security/website_security.xml
diff options
context:
space:
mode:
authorNicolas Martinelli <nim@odoo.com>2018-01-05 13:55:10 +0100
committerNicolas Martinelli <nim-odoo@users.noreply.github.com>2018-01-09 13:19:33 +0100
commit81d1296323fdaeb88c37bde45f7443afd6ebd0ac (patch)
tree5bda9cf88bd5e0e8176ffb815533c340aee9cca3 /addons/website/security/website_security.xml
parent4637bdf9bf1fa2644a048d5e586fc1b655a2940e (diff)
[FIX] account, stock, website: access rights
1. Create a new user with all the permissions as manager (or at least Accounting) except Inventory 2. Login and then go to Invoicing --> Settings 3. Do a minor change, save An access error occurs. Since the settings of all modules are smartly loaded in v11, it now implies that a user must have extra manager access rights to be allowed to save them. We could have kept separate actions for each setting page, but we would have missed the fun of access errors. Anyway, security-wise this is not an issue to force the manager groups since a user with 'Settings' access rights can change his own rights. It's just very annoying. Or fun. Complement of aa65a46fc50701f Fixes #21766 opw-801210
Diffstat (limited to 'addons/website/security/website_security.xml')
-rw-r--r--addons/website/security/website_security.xml4
1 files changed, 4 insertions, 0 deletions
diff --git a/addons/website/security/website_security.xml b/addons/website/security/website_security.xml
index 99264d4e460..6702d0878f1 100644
--- a/addons/website/security/website_security.xml
+++ b/addons/website/security/website_security.xml
@@ -15,6 +15,10 @@
<field name="groups_id" eval="[(4, ref('group_website_designer'))]"/>
</record>
+ <record id="base.group_system" model="res.groups">
+ <field name="implied_ids" eval="[(4, ref('website.group_website_designer'))]"/>
+ </record>
+
<record id="website_designer_edit_qweb" model="ir.rule">
<field name="name">website_designer: Manage Website and qWeb view</field>
<field name="model_id" ref="base.model_ir_ui_view"/>