From 61bc8e90f40b1a83a766e276077f1fa8d4a94388 Mon Sep 17 00:00:00 2001 From: Arnaud Levy <contact@arnaudlevy.com> Date: Thu, 7 Sep 2023 12:28:13 +0200 Subject: [PATCH] optim --- app/views/admin/communication/websites/show.html.erb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/views/admin/communication/websites/show.html.erb b/app/views/admin/communication/websites/show.html.erb index b64dacd6b..a6687f683 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 %> -- GitLab