diff --git a/password_security/__manifest__.py b/password_security/__manifest__.py index cf95f41db9..054c6dedad 100644 --- a/password_security/__manifest__.py +++ b/password_security/__manifest__.py @@ -4,7 +4,7 @@ 'name': 'Password Security', "summary": "Allow admin to set password security requirements.", - 'version': '11.0.1.0.1', + 'version': '11.0.1.1.0', 'author': "LasLabs, " "Kaushal Prajapati, " diff --git a/password_security/security/res_users_pass_history.xml b/password_security/security/res_users_pass_history.xml index 2576a0d787..35f83ea5e8 100644 --- a/password_security/security/res_users_pass_history.xml +++ b/password_security/security/res_users_pass_history.xml @@ -6,7 +6,7 @@ --> - + Res Users Pass History Access + + Res Users Pass History Access + 0 + 0 + 1 + 0 + + + [ + (1, '=', 1) + ] + + diff --git a/password_security/tests/test_res_users.py b/password_security/tests/test_res_users.py index 718b4a27a2..be9b42419a 100644 --- a/password_security/tests/test_res_users.py +++ b/password_security/tests/test_res_users.py @@ -150,3 +150,12 @@ def test_underscore_is_special_character(self): self.assertTrue(self.main_comp.password_special) rec_id = self._new_record() rec_id._check_password('asdQWE12345_3') + + def test_user_with_admin_rights_can_create_users(self): + demo = self.env.ref("base.user_demo") + demo.groups_id |= self.env.ref("base.group_erp_manager") + test1 = self.model_obj.sudo(demo).create({ + "login": "test1", + "name": "test1", + }) + test1.unlink()