mirror of
https://github.com/penpot/penpot.git
synced 2025-04-12 23:11:23 -05:00
✨ Enable register by invitation when register is disabled
This commit is contained in:
parent
f7bb08382c
commit
36eaa18749
1 changed files with 2 additions and 1 deletions
|
@ -100,7 +100,8 @@
|
|||
|
||||
(sv/defmethod ::prepare-register-profile {:auth false}
|
||||
[{:keys [pool tokens] :as cfg} params]
|
||||
(when-not (contains? cf/flags :registration)
|
||||
(when-not (or (contains? :invitation-token params)
|
||||
(contains? cf/flags :registration))
|
||||
(ex/raise :type :restriction
|
||||
:code :registration-disabled))
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue