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:
parent
94c834ae5e
commit
b32c8e2a83
1 changed files with 2 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue