mirror of
https://github.com/penpot/penpot.git
synced 2026-04-29 05:08:08 +00:00
✨ Enable register by invitation when register is disabled
This commit is contained in:
parent
f7bb08382c
commit
36eaa18749
@ -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…
x
Reference in New Issue
Block a user