diff --git a/app/controllers/site_menu_widgets_controller.rb b/app/controllers/site_menu_widgets_controller.rb index a7ab113..fa86096 100644 --- a/app/controllers/site_menu_widgets_controller.rb +++ b/app/controllers/site_menu_widgets_controller.rb @@ -2,6 +2,7 @@ class SiteMenuWidgetsController < ApplicationController def create_json(pages) items = [] pages.each do |page| + next if (!page.menu_enabled_for.include?(I18n.locale.to_s) rescue false item = {} item["obj"] = page if page.child_page.size > 0