diff --git a/backend/src/app/rpc/commands/files_create.clj b/backend/src/app/rpc/commands/files_create.clj index e4540b27e..ca9bbe58c 100644 --- a/backend/src/app/rpc/commands/files_create.clj +++ b/backend/src/app/rpc/commands/files_create.clj @@ -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 diff --git a/backend/src/app/rpc/commands/files_update.clj b/backend/src/app/rpc/commands/files_update.clj index 1a01a281d..89f75b580 100644 --- a/backend/src/app/rpc/commands/files_update.clj +++ b/backend/src/app/rpc/commands/files_update.clj @@ -139,8 +139,7 @@ features (-> (cfeat/get-team-enabled-features cf/flags team) (cfeat/check-client-features! (:features params)) - (cfeat/check-file-features! (:features file) (:features params)) - (set/difference cfeat/frontend-only-features)) + (cfeat/check-file-features! (:features file) (:features params))) changes (if changes-with-metadata (->> changes-with-metadata (mapcat :changes) vec) @@ -148,7 +147,7 @@ params (-> params (assoc :profile-id profile-id) - (assoc :features features) + (assoc :features (set/difference features cfeat/frontend-only-features)) (assoc :team team) (assoc :file file) (assoc :changes changes)) diff --git a/common/src/app/common/features.cljc b/common/src/app/common/features.cljc index 1aec9dfc8..0ced5b1d8 100644 --- a/common/src/app/common/features.cljc +++ b/common/src/app/common/features.cljc @@ -155,6 +155,7 @@ team-features (into #{} xf-remove-ephimeral (:features team))] (-> enabled-features (set/intersection no-migration-features) + (set/difference frontend-only-features) (set/union team-features)))) (defn check-client-features!