mirror of
https://gitlab2.federez.net/re2o/re2o
synced 2024-11-05 01:16:27 +00:00
Fix typo in User.can_view_all
This commit is contained in:
parent
7bc300c3a6
commit
e404fa36ec
1 changed files with 1 additions and 1 deletions
|
@ -1109,7 +1109,7 @@ class User(RevMixin, FieldPermissionModelMixin, AbstractBaseUser,
|
|||
:return: True if the user can view the list and an explanation
|
||||
message.
|
||||
"""
|
||||
can = user_request.has_perm('use.view_user')
|
||||
can = user_request.has_perm('users.view_user')
|
||||
return (
|
||||
can,
|
||||
_("You don't have the right to view the list of users.") if not can else None,
|
||||
|
|
Loading…
Reference in a new issue