This commit is contained in:
chiu 2021-05-26 12:22:03 +08:00
parent 9e42030f14
commit fb0cf35028
1 changed files with 1 additions and 0 deletions

View File

@ -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