mirror of
https://github.com/penpot/penpot.git
synced 2025-02-11 01:28:30 -05:00
🐛 Fix minor issue with pointer-map feature interaction with team features
This commit is contained in:
parent
99f39c9777
commit
59fe93cb45
1 changed files with 10 additions and 4 deletions
|
@ -190,10 +190,16 @@
|
||||||
|
|
||||||
(check-supported-features! file-features)
|
(check-supported-features! file-features)
|
||||||
|
|
||||||
(let [not-supported (-> file-features
|
(let [;; We should ignore all features that does not match with
|
||||||
(set/difference enabled-features)
|
;; the `no-migration-features` set because we can't enable
|
||||||
(set/difference client-features)
|
;; them as-is, because they probably need migrations
|
||||||
(set/difference frontend-only-features))]
|
client-features (set/intersection client-features no-migration-features)
|
||||||
|
not-supported (-> file-features
|
||||||
|
(set/difference enabled-features)
|
||||||
|
(set/difference client-features)
|
||||||
|
(set/difference backend-only-features)
|
||||||
|
(set/difference frontend-only-features))]
|
||||||
|
|
||||||
(when (seq not-supported)
|
(when (seq not-supported)
|
||||||
(ex/raise :type :restriction
|
(ex/raise :type :restriction
|
||||||
:code :feature-mismatch
|
:code :feature-mismatch
|
||||||
|
|
Loading…
Add table
Reference in a new issue