0
Fork 0
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:
Andrey Antukh 2022-03-10 08:37:10 +01:00
parent f7bb08382c
commit 36eaa18749

View file

@ -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))