mirror of
https://gitlab2.federez.net/re2o/re2o
synced 2024-11-23 11:53:12 +00:00
Fix check_selfpasswd
This commit is contained in:
parent
9161e0f7e3
commit
5e21a0c494
1 changed files with 3 additions and 3 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue