forked from saurabh/orbit4-5
Merge branch 'development' of gitlab.tp.rulingcom.com:saurabh/orbit4-5
This commit is contained in:
commit
ed13c81880
|
@ -76,10 +76,14 @@ class PagesController < ApplicationController
|
|||
params[:url] = page.url
|
||||
categories = []
|
||||
if page.module == "member"
|
||||
page.categories.each do |c|
|
||||
category = Role.find(c) rescue nil
|
||||
if !category.nil? && !category.disabled
|
||||
categories << c
|
||||
if page.categories.first == "all"
|
||||
categories = ["all"]
|
||||
else
|
||||
page.categories.each do |c|
|
||||
category = Role.find(c) rescue nil
|
||||
if !category.nil? && !category.disabled
|
||||
categories << c
|
||||
end
|
||||
end
|
||||
end
|
||||
else
|
||||
|
|
Loading…
Reference in New Issue