From 8336395a1ef816df7f30ca62fdb6828aba75ee40 Mon Sep 17 00:00:00 2001 From: Kat Date: Mon, 23 May 2022 10:14:55 +0100 Subject: [PATCH] only allow to edit existing editable fields --- app/views/organisations/show.html.erb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/organisations/show.html.erb b/app/views/organisations/show.html.erb index 0d7f46895..b4864b678 100644 --- a/app/views/organisations/show.html.erb +++ b/app/views/organisations/show.html.erb @@ -15,7 +15,7 @@
<%= govuk_summary_list do |summary_list| %> <% @organisation.display_attributes.each do |attr| %> - <% if can_edit_org?(current_user) && attr[:editable] || current_user.support? %> + <% if can_edit_org?(current_user) && attr[:editable] %> <%= summary_list.row do |row| %> <% row.key { attr[:name].to_s.humanize } %> <% row.value { details_html(attr) } %>