mirror of
https://gitlab2.federez.net/re2o/re2o
synced 2024-11-27 07:02:26 +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):
|
def check_selfpasswd(self, user_request, *_args, **_kwargs):
|
||||||
""" Returns (True, None) if user_request is self, else returns
|
""" Returns (True, None, None) if user_request is self, else returns
|
||||||
(False, None)
|
(False, None, None)
|
||||||
"""
|
"""
|
||||||
return user_request == self, None
|
return user_request == self, None, None
|
||||||
|
|
||||||
def can_change_room(self, user_request, *_args, **_kwargs):
|
def can_change_room(self, user_request, *_args, **_kwargs):
|
||||||
""" Check if a user can change a room
|
""" Check if a user can change a room
|
||||||
|
|
Loading…
Reference in a new issue