From 36eaa1874958a363e58a1a0085bac63f9b7e82ea Mon Sep 17 00:00:00 2001 From: Andrey Antukh Date: Thu, 10 Mar 2022 08:37:10 +0100 Subject: [PATCH] :sparkles: Enable register by invitation when register is disabled --- backend/src/app/rpc/mutations/profile.clj | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/backend/src/app/rpc/mutations/profile.clj b/backend/src/app/rpc/mutations/profile.clj index 540e5e22b..86e5ca8f6 100644 --- a/backend/src/app/rpc/mutations/profile.clj +++ b/backend/src/app/rpc/mutations/profile.clj @@ -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))