Browse Source

Don't show activation buttons for schemes at merged orgs

pull/2764/head
Rachael Booth 7 months ago
parent
commit
070989b6c4
  1. 2
      app/views/locations/show.html.erb
  2. 2
      app/views/schemes/show.html.erb

2
app/views/locations/show.html.erb

@ -47,7 +47,7 @@
</div>
</div>
<% if @location.scheme.owning_organisation.active? && LocationPolicy.new(current_user, @location).deactivate? %>
<% if @location.scheme.owning_organisation.status == :active && LocationPolicy.new(current_user, @location).deactivate? %>
<%= toggle_location_link(@location) %>
<% end %>

2
app/views/schemes/show.html.erb

@ -52,7 +52,7 @@
</div>
</div>
<% if @scheme.owning_organisation.active? && SchemePolicy.new(current_user, @scheme).deactivate? %>
<% if @scheme.owning_organisation.status == :active && SchemePolicy.new(current_user, @scheme).deactivate? %>
<%= toggle_scheme_link(@scheme) %>
<% end %>

Loading…
Cancel
Save