From b351e858c76a5784ba0c454f6199017661191b6d Mon Sep 17 00:00:00 2001 From: manson Date: Thu, 3 Jul 2014 19:30:55 +0800 Subject: [PATCH] Fix hidden status --- app/controllers/personal_conferences_controller.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/controllers/personal_conferences_controller.rb b/app/controllers/personal_conferences_controller.rb index dec2bef..6a57e3d 100644 --- a/app/controllers/personal_conferences_controller.rb +++ b/app/controllers/personal_conferences_controller.rb @@ -1,6 +1,6 @@ class PersonalConferencesController < ApplicationController def index - writing_conferences = WritingConference.all + writing_conferences = WritingConference.where(:is_hidden=>false).all writing_conference_list = writing_conferences.collect do |writing_conference| { "year" => writing_conference.year, @@ -22,7 +22,7 @@ class PersonalConferencesController < ApplicationController def show params = OrbitHelper.params - writing_conference = WritingConference.find_by(uid: params[:uid]) + writing_conference = WritingConference.where(:is_hidden=>false).find_by(uid: params[:uid]) files = writing_conference.writing_conference_files.map do |file| {