From 97151cd6567f541e031d8e1252a304b2cdb3ee97 Mon Sep 17 00:00:00 2001 From: Jean-Romain Garnier Date: Thu, 20 Feb 2020 08:07:41 +0000 Subject: [PATCH] Fix permission allowing user to change groups --- users/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/users/models.py b/users/models.py index 3d21548a..75a38aa9 100755 --- a/users/models.py +++ b/users/models.py @@ -1090,7 +1090,7 @@ class User( :returns: a message and a boolean which is True if the user has the right to change a group """ - can = user_request.has_perm("users.change_user_grou") + can = user_request.has_perm("users.change_user_groups") return ( can, _("You don't have the right to edit the user's groups of rights.")