From a4b6b3773762831458cd8cf47984eb16d873a677 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Gaya?= <sebastien.gaya@gmail.com> Date: Mon, 13 Mar 2023 15:43:40 +0100 Subject: [PATCH] fix dashboard --- app/controllers/admin/dashboard_controller.rb | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/app/controllers/admin/dashboard_controller.rb b/app/controllers/admin/dashboard_controller.rb index 5d9f0ca7a..dd170122f 100644 --- a/app/controllers/admin/dashboard_controller.rb +++ b/app/controllers/admin/dashboard_controller.rb @@ -1,10 +1,10 @@ class Admin::DashboardController < Admin::ApplicationController def index @namespaces = [] - @namespaces << Education if helpers.feature_education? - @namespaces << Research if helpers.feature_research? - @namespaces << Communication if helpers.feature_communication? - @namespaces << Administration if helpers.feature_administration? + @namespaces << Education if feature_education? + @namespaces << Research if feature_research? + @namespaces << Communication if feature_communication? + @namespaces << Administration if feature_administration? breadcrumb end end -- GitLab