8
0
Fork 0
mirror of https://gitlab2.federez.net/re2o/re2o synced 2024-12-22 23:13:46 +00:00

Fix check_selfpasswd

This commit is contained in:
Hugo Levy-Falk 2019-09-06 18:32:51 +02:00
parent 9161e0f7e3
commit 5e21a0c494

View file

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