This commit is contained in:
BoHung Chiu 2021-05-26 10:21:51 +08:00
parent a003f4847c
commit 3c393b2247
1 changed files with 1 additions and 0 deletions

View File

@ -2,6 +2,7 @@ class SiteMenuWidgetsController < ApplicationController
def create_json(pages) def create_json(pages)
items = [] items = []
pages.each do |page| pages.each do |page|
next if (!page.menu_enabled_for.include?(I18n.locale.to_s) rescue false
item = {} item = {}
item["obj"] = page item["obj"] = page
if page.child_page.size > 0 if page.child_page.size > 0