mirror of
https://github.com/penpot/penpot.git
synced 2025-05-23 01:16:10 +02:00
🐛 Preserve frontend-only flags already present on team
This commit is contained in:
parent
a91737b4d7
commit
a18214a1a5
3 changed files with 5 additions and 6 deletions
|
@ -111,8 +111,7 @@
|
|||
;; features, because some features can be enabled
|
||||
;; globally, but the team is still not migrated properly.
|
||||
features (-> (cfeat/get-team-enabled-features cf/flags team)
|
||||
(cfeat/check-client-features! (:features params))
|
||||
(set/difference cfeat/frontend-only-features))
|
||||
(cfeat/check-client-features! (:features params)))
|
||||
|
||||
;; We also include all no migration features declared by
|
||||
;; client; that enables the ability to enable a runtime
|
||||
|
@ -124,7 +123,7 @@
|
|||
|
||||
params (-> params
|
||||
(assoc :profile-id profile-id)
|
||||
(assoc :features features))]
|
||||
(assoc :features (set/difference features cfeat/frontend-only-features)))]
|
||||
|
||||
(quotes/check! cfg {::quotes/id ::quotes/files-per-project
|
||||
::quotes/team-id team-id
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue