This commit is contained in:
2023-02-16 12:00:05 +00:00
parent 0b16fcac67
commit 5d093db4f6
12 changed files with 130 additions and 34 deletions

View File

@ -86,7 +86,7 @@ def delete_mailbox(mailbox_id):
"""
user = g.user
mailbox = Mailbox.get(id=mailbox_id)
mailbox = Mailbox.get(mailbox_id)
if not mailbox or mailbox.user_id != user.id:
return jsonify(error="Forbidden"), 403