8
0
Fork 0
mirror of https://gitlab2.federez.net/re2o/re2o synced 2024-12-23 15:33:45 +00:00

Fix permission allowing user to change groups

This commit is contained in:
Jean-Romain Garnier 2020-02-20 08:07:41 +00:00 committed by Gabriel Detraz
parent 010169aab1
commit 6a14f72a16

View file

@ -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.")