From 2e25230d468bb1c7e8c633dfff7364186f5f3f7e Mon Sep 17 00:00:00 2001 From: David Dufresne Date: Wed, 14 Nov 2018 11:40:42 -0500 Subject: [PATCH] Add missing acl line to admin_ligh_user group. --- addons/admin_light_user/security/ir.model.access.csv | 1 + .../tests/test_prevent_grand_admin_access.py | 5 ++++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/addons/admin_light_user/security/ir.model.access.csv b/addons/admin_light_user/security/ir.model.access.csv index 4089039b..287ccf8b 100644 --- a/addons/admin_light_user/security/ir.model.access.csv +++ b/addons/admin_light_user/security/ir.model.access.csv @@ -6,3 +6,4 @@ access_ir_rule,Admin Light: ir.rule,base.model_ir_rule,group_user_management,1,0 access_ir_ui_menu,Admin Light: ir.ui.menu,base.model_ir_ui_menu,group_user_management,1,0,0,0 access_ir_ui_view,Admin Light: ir.ui.view,base.model_ir_ui_view,group_user_management,1,0,0,0 access_users,Admin Light: res.users,base.model_res_users,group_user_management,1,1,1,1 +access_partners,Admin Light: res.partner,base.model_res_partner,group_user_management,1,1,1,0 diff --git a/addons/admin_light_user/tests/test_prevent_grand_admin_access.py b/addons/admin_light_user/tests/test_prevent_grand_admin_access.py index d7cdd12f..1a704545 100644 --- a/addons/admin_light_user/tests/test_prevent_grand_admin_access.py +++ b/addons/admin_light_user/tests/test_prevent_grand_admin_access.py @@ -18,7 +18,10 @@ class TestPreventGrandAdminAccess(common.SavepointCase): def setUpClass(cls): super().setUpClass() cls.admin = cls.env.ref('base.user_demo') - cls.admin.groups_id |= cls.env.ref('admin_light_user.group_user_management') + cls.admin.groups_id = ( + cls.env.ref('admin_light_user.group_user_management') | + cls.env.ref('base.group_user') + ) cls.user = cls.env['res.users'].create({ 'name': 'Basic User',