diff --git a/decidim-admin/config/routes.rb b/decidim-admin/config/routes.rb index 99b3c6ccaef30..0205ddcf02ea8 100644 --- a/decidim-admin/config/routes.rb +++ b/decidim-admin/config/routes.rb @@ -39,7 +39,7 @@ mount manifest.admin_engine, at: "/#{manifest.name}", as: "decidim_admin_#{manifest.name}" end - mount Decidim::Templates::AdminEngine, at: "/templates", as: "decidim_admin_templates" if Decidim::Admin.enable_templates + mount Decidim::Templates::AdminEngine, at: "/templates", as: "decidim_admin_templates" if Decidim.module_installed?(:templates) resources :users, except: [:edit, :update], controller: "users" do member do