diff --git a/app/views/admin/communication/websites/show.html.erb b/app/views/admin/communication/websites/show.html.erb index b64dacd6b6cd7d403ff1838a4083b0426f8f34b0..a6687f6833d72ce77134a9c54e65f5fb3bc4760c 100644 --- a/app/views/admin/communication/websites/show.html.erb +++ b/app/views/admin/communication/websites/show.html.erb @@ -14,8 +14,8 @@ <% end %> <%= render 'admin/communication/websites/sidebar' do %> - <%= render 'admin/communication/websites/show/posts' if can?(:read, Communication::Website::Post) && @website.feature_posts %> - <%= render 'admin/communication/websites/show/events' if can?(:read, Communication::Website::Agenda::Event) && @website.feature_agenda %> + <%= render 'admin/communication/websites/show/posts' if @website.feature_posts && can?(:read, Communication::Website::Post) %> + <%= render 'admin/communication/websites/show/events' if @website.feature_agenda && can?(:read, Communication::Website::Agenda::Event) %> <%= render 'admin/communication/websites/show/pages' if can?(:read, Communication::Website::Page) %> <%= image_tag @website.deployment_status_badge, alt: '' if @website.deployment_status_badge.present? %> <% end %>