Skip to content

Commit

Permalink
hot fix: subscription info if revoked (#450)
Browse files Browse the repository at this point in the history
  • Loading branch information
T3ST3ST3R0N committed Aug 8, 2023
1 parent 2630650 commit ddfb278
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions app/views/subscription.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,4 +86,7 @@ def user_subcription_info(token: str,
if not dbuser or dbuser.created_at > sub['created_at']:
return Response(status_code=404)

elif dbuser.sub_revoked_at and dbuser.sub_revoked_at > sub['created_at']:
return Response(status_code=404)

return dbuser

0 comments on commit ddfb278

Please sign in to comment.