Merge pull request #2981 from betagouv/hides-dangerous-features-from-manager
manager: hide dangerous features
This commit is contained in:
commit
9528f9a690
2 changed files with 8 additions and 9 deletions
|
@ -6,8 +6,8 @@
|
||||||
end
|
end
|
||||||
|
|
||||||
%table#features
|
%table#features
|
||||||
- Flipflop.feature_set.features.each do |feature|
|
- admin_features = Flipflop.feature_set.features.reject{ |f| f.group.try(:key) == :production }
|
||||||
- if !feature.group || feature.group.key != :production
|
- admin_features.each do |feature|
|
||||||
%tr
|
%tr
|
||||||
%td= feature.title
|
%td= feature.title
|
||||||
%td
|
%td
|
||||||
|
|
|
@ -27,8 +27,7 @@ Flipflop.configure do
|
||||||
default: ENV['FOG_ENABLED'] == 'enabled'
|
default: ENV['FOG_ENABLED'] == 'enabled'
|
||||||
feature :weekly_overview,
|
feature :weekly_overview,
|
||||||
default: ENV['APP_NAME'] == 'tps'
|
default: ENV['APP_NAME'] == 'tps'
|
||||||
end
|
|
||||||
|
|
||||||
feature :pre_maintenance_mode
|
feature :pre_maintenance_mode
|
||||||
feature :maintenance_mode
|
feature :maintenance_mode
|
||||||
end
|
end
|
||||||
|
end
|
||||||
|
|
Loading…
Reference in a new issue