From 9377ef98179b676f087239f9ce855b98e07c3d8d Mon Sep 17 00:00:00 2001 From: Piotr Osiewicz <24362066+osiewicz@users.noreply.github.com> Date: Wed, 19 Mar 2025 13:20:26 +0100 Subject: [PATCH] feature_flags: Do not enable feature flags by default in dev builds (#27065) Closes #ISSUE Release Notes: - N/A --- crates/feature_flags/src/feature_flags.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/feature_flags/src/feature_flags.rs b/crates/feature_flags/src/feature_flags.rs index 3434474a06..9f716ba72c 100644 --- a/crates/feature_flags/src/feature_flags.rs +++ b/crates/feature_flags/src/feature_flags.rs @@ -207,7 +207,7 @@ impl FeatureFlagAppExt for App { fn has_flag(&self) -> bool { self.try_global::() .map(|flags| flags.has_flag::()) - .unwrap_or_else(|| T::enabled_in_development()) + .unwrap_or(false) } fn is_staff(&self) -> bool {