From cb8e31e7f8d45565ec6b2e72ae9e3ee23b5be301 Mon Sep 17 00:00:00 2001 From: Andrey Antukh Date: Wed, 19 Feb 2025 22:32:42 +0100 Subject: [PATCH] :bug: Add correct handling of features on clone-template --- backend/src/app/rpc/commands/management.clj | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/backend/src/app/rpc/commands/management.clj b/backend/src/app/rpc/commands/management.clj index 73d832fe3..c04660f6a 100644 --- a/backend/src/app/rpc/commands/management.clj +++ b/backend/src/app/rpc/commands/management.clj @@ -406,12 +406,16 @@ :prefix "penpot.template." :suffix "" :min-age "30m") - format (bfc/parse-file-format template) + format (bfc/parse-file-format template) + team (teams/get-team conn + :profile-id profile-id + :project-id project-id) cfg (-> cfg (assoc ::bfc/project-id project-id) (assoc ::bfc/profile-id profile-id) - (assoc ::bfc/input template)) + (assoc ::bfc/input template) + (assoc ::bfc/features (cfeat/get-team-enabled-features cf/flags team))) result (if (= format :binfile-v3) (px/invoke! executor (partial bf.v3/import-files! cfg))