0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-02-12 18:18:24 -05:00

🐛 Fix incorrect client features checking on file creation

This commit is contained in:
Andrey Antukh 2023-11-07 22:18:45 +01:00
parent 94c834ae5e
commit b32c8e2a83

View file

@ -125,12 +125,13 @@
(defn check-client-features!
"Function used for check feature compability between currently enabled
features set on backend with the enabledq featured set by the
features set on backend with the enabled featured set by the
frontend client"
[enabled-features client-features]
(when (set? client-features)
(let [not-supported (-> enabled-features
(set/difference client-features)
(set/difference frontend-only-features)
(set/difference backend-only-features))]
(when (seq not-supported)
(ex/raise :type :restriction