0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-02-13 02:28:18 -05:00

🐛 Fix issues on profile deletion procedure

This commit is contained in:
Andrey Antukh 2022-10-05 11:27:11 +02:00
parent c534a40923
commit 6e28bb9df8

View file

@ -109,6 +109,10 @@
(when-not (check-password profile password)
(ex/raise :type :validation
:code :wrong-credentials))
(when-let [deleted-at (:deleted-at profile)]
(when (dt/is-after? (dt/now) deleted-at)
(ex/raise :type :validation
:code :wrong-credentials)))
profile)]