feature_flags: Do not enable feature flags by default in dev builds (#27065)
Closes #ISSUE Release Notes: - N/A
This commit is contained in:
parent
c3b5046347
commit
9377ef9817
1 changed files with 1 additions and 1 deletions
|
@ -207,7 +207,7 @@ impl FeatureFlagAppExt for App {
|
|||
fn has_flag<T: FeatureFlag>(&self) -> bool {
|
||||
self.try_global::<FeatureFlags>()
|
||||
.map(|flags| flags.has_flag::<T>())
|
||||
.unwrap_or_else(|| T::enabled_in_development())
|
||||
.unwrap_or(false)
|
||||
}
|
||||
|
||||
fn is_staff(&self) -> bool {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue