mirror of
https://github.com/penpot/penpot.git
synced 2026-07-22 22:17:58 +00:00
🐛 Fix mismatched subscription in social login (#10703)
This commit is contained in:
parent
792d88dc4f
commit
bdc078d5ea
@ -85,9 +85,18 @@
|
||||
::audit/props (audit/profile->props profile)
|
||||
::audit/profile-id (:id profile)}))))
|
||||
|
||||
(defn- with-nitrate-licence
|
||||
[profile cfg]
|
||||
(if (contains? cf/flags :nitrate)
|
||||
(nitrate/add-nitrate-licence-to-profile cfg profile)
|
||||
profile))
|
||||
|
||||
(defmethod process-token :auth
|
||||
[{:keys [::db/conn] :as cfg} _params {:keys [profile-id] :as claims}]
|
||||
(let [profile (profile/get-profile conn profile-id)]
|
||||
(let [profile (-> (profile/get-profile conn profile-id)
|
||||
(profile/strip-private-attrs)
|
||||
(update :props profile/filter-props)
|
||||
(with-nitrate-licence cfg))]
|
||||
(assoc claims :profile profile)))
|
||||
|
||||
;; --- Team Invitation
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user