From 5e21a0c4943ae17f09dcddb52ecd5b8f95b879a8 Mon Sep 17 00:00:00 2001 From: Hugo Levy-Falk Date: Fri, 6 Sep 2019 18:32:51 +0200 Subject: [PATCH] Fix check_selfpasswd --- users/models.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/users/models.py b/users/models.py index 16779acc..1de58ea5 100755 --- a/users/models.py +++ b/users/models.py @@ -934,10 +934,10 @@ class User(RevMixin, FieldPermissionModelMixin, AbstractBaseUser, ) def check_selfpasswd(self, user_request, *_args, **_kwargs): - """ Returns (True, None) if user_request is self, else returns - (False, None) + """ Returns (True, None, None) if user_request is self, else returns + (False, None, None) """ - return user_request == self, None + return user_request == self, None, None def can_change_room(self, user_request, *_args, **_kwargs): """ Check if a user can change a room