diff --git a/app/views/admin/universal_tables/show.html.erb b/app/views/admin/universal_tables/show.html.erb index 72fbfdc..868bd46 100644 --- a/app/views/admin/universal_tables/show.html.erb +++ b/app/views/admin/universal_tables/show.html.erb @@ -27,6 +27,7 @@ + <% can_edit = can_edit_or_delete?(@entries.first.u_table) %> <% @entries.each do |entry| %> <% @columns.each_with_index do |column, index| %> @@ -51,7 +52,7 @@ <%= format_date(ce.period_from, column.date_format) %> ~ <%= format_date(ce.period_to, column.date_format) %> <% end %> <% end %> - <% if index == 0 %> + <% if index == 0 && can_edit %>