From e404fa36ec7fc8566ca17b2d0e83d4c0d9910e89 Mon Sep 17 00:00:00 2001 From: Hugo Levy-Falk Date: Fri, 20 Sep 2019 15:09:57 +0200 Subject: [PATCH] Fix typo in User.can_view_all --- users/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/users/models.py b/users/models.py index 0438ae83..bbb4146d 100755 --- a/users/models.py +++ b/users/models.py @@ -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,