Skip to content

Commit

Permalink
Add missing acl line to admin_ligh_user group.
Browse files Browse the repository at this point in the history
  • Loading branch information
David Dufresne authored and majouda committed Feb 12, 2024
1 parent 05f4c85 commit 2e25230
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
1 change: 1 addition & 0 deletions addons/admin_light_user/security/ir.model.access.csv
Original file line number Diff line number Diff line change
Expand Up @@ -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
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down

0 comments on commit 2e25230

Please sign in to comment.