Browse Source

Enable managing collection resources on prod (#2916)

* Enable managing collection resources

* Remove feature toggle
pull/2924/merge
kosiakkatrina 3 days ago committed by GitHub
parent
commit
45fb44b077
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 4
      app/services/feature_toggle.rb
  2. 2
      app/views/layouts/_collection_resources.html.erb

4
app/services/feature_toggle.rb

@ -27,10 +27,6 @@ class FeatureToggle
!Rails.env.production? && !Rails.env.test? !Rails.env.production? && !Rails.env.test?
end end
def self.managing_resources_enabled?
!Rails.env.production?
end
def self.create_test_logs_enabled? def self.create_test_logs_enabled?
Rails.env.development? || Rails.env.review? Rails.env.development? || Rails.env.review?
end end

2
app/views/layouts/_collection_resources.html.erb

@ -23,4 +23,4 @@
<% end %> <% end %>
</div> </div>
<%= govuk_button_link_to "Manage collection resources", collection_resources_path, secondary: true, class: "govuk-!-margin-bottom-2" if current_user&.support? && FeatureToggle.managing_resources_enabled? %> <%= govuk_button_link_to "Manage collection resources", collection_resources_path, secondary: true, class: "govuk-!-margin-bottom-2" if current_user&.support? %>

Loading…
Cancel
Save