8
0
Fork 0
mirror of https://gitlab2.federez.net/re2o/re2o synced 2024-11-27 07:02:26 +00:00

Merge branch 'fix-can-view-all' into 'dev'

Fix typo in User.can_view_all

See merge request federez/re2o!442
This commit is contained in:
chirac 2019-09-20 15:13:05 +02:00
commit e7db840dd5

View file

@ -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,