set some fields back to default

This commit is contained in:
Son NK 2021-02-17 13:08:02 +01:00
parent 9030d8b543
commit d4ac2da96a

View file

@ -51,6 +51,10 @@ def transfer(alias, new_user, new_mailboxes: [Mailbox]):
# now the alias belongs to the new user # now the alias belongs to the new user
alias.user_id = new_user.id alias.user_id = new_user.id
# set some fields back to default
alias.disable_pgp = False
alias.pinned = False
db.session.commit() db.session.commit()