mirror of
https://github.com/penpot/penpot.git
synced 2025-08-06 12:18:29 +02:00
⚡ Make feature resolved on team load
That simplifies features retrieval to simple get
This commit is contained in:
parent
b8107ee497
commit
bc957893f4
23 changed files with 224 additions and 285 deletions
|
@ -91,9 +91,6 @@
|
|||
:project-id project-id)
|
||||
team-id (:id team)
|
||||
|
||||
;; When we create files, we only need to respect the team
|
||||
;; 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)))
|
||||
|
||||
|
@ -107,7 +104,7 @@
|
|||
|
||||
params (-> params
|
||||
(assoc :profile-id profile-id)
|
||||
(assoc :features (set/difference features cfeat/frontend-only-features)))]
|
||||
(assoc :features 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