mirror of
https://github.com/himool/HimoolERP.git
synced 2024-12-26 17:02:31 +08:00
feat: 调整
This commit is contained in:
parent
f5ed83c4f3
commit
39da8762bb
1 changed files with 1 additions and 1 deletions
|
@ -9,7 +9,7 @@ class IsAuthenticated(BasePermission):
|
|||
|
||||
def has_permission(self, request, view):
|
||||
if not isinstance(request.user, User):
|
||||
raise False
|
||||
return False
|
||||
|
||||
if (expiry_time := request.user.team.expiry_time) < pendulum.now():
|
||||
raise ValidationError(f'已到期, 到期日期: {expiry_time}')
|
||||
|
|
Loading…
Reference in a new issue