mirror of
https://gitlab2.federez.net/re2o/re2o
synced 2024-12-01 07:24:39 +00:00
Merge branch 'cant_change_user_roles' into 'dev'
Cant change user roles without being superuser See merge request federez/re2o!489
This commit is contained in:
commit
5b4ba6c7dc
1 changed files with 1 additions and 1 deletions
|
@ -1090,7 +1090,7 @@ class User(
|
||||||
:returns: a message and a boolean which is True if the user has
|
:returns: a message and a boolean which is True if the user has
|
||||||
the right to change a group
|
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 (
|
return (
|
||||||
can,
|
can,
|
||||||
_("You don't have the right to edit the user's groups of rights.")
|
_("You don't have the right to edit the user's groups of rights.")
|
||||||
|
|
Loading…
Reference in a new issue