mirror of
https://github.com/penpot/penpot.git
synced 2025-07-28 21:47:13 +02:00
🎉 Add the ability to completly block access to a profile
This commit is contained in:
parent
37e2fe5c65
commit
757cee67fb
10 changed files with 83 additions and 27 deletions
|
@ -46,6 +46,11 @@
|
|||
:code :wrong-credentials))
|
||||
|
||||
(let [profile (login-or-register cfg info)]
|
||||
|
||||
(when (:is-blocked profile)
|
||||
(ex/raise :type :restriction
|
||||
:code :profile-blocked))
|
||||
|
||||
(if-let [token (:invitation-token params)]
|
||||
;; If invitation token comes in params, this is because the
|
||||
;; user comes from team-invitation process; in this case,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue