Fix hidden status
This commit is contained in:
parent
dd9bc683ba
commit
b351e858c7
|
@ -1,6 +1,6 @@
|
||||||
class PersonalConferencesController < ApplicationController
|
class PersonalConferencesController < ApplicationController
|
||||||
def index
|
def index
|
||||||
writing_conferences = WritingConference.all
|
writing_conferences = WritingConference.where(:is_hidden=>false).all
|
||||||
writing_conference_list = writing_conferences.collect do |writing_conference|
|
writing_conference_list = writing_conferences.collect do |writing_conference|
|
||||||
{
|
{
|
||||||
"year" => writing_conference.year,
|
"year" => writing_conference.year,
|
||||||
|
@ -22,7 +22,7 @@ class PersonalConferencesController < ApplicationController
|
||||||
|
|
||||||
def show
|
def show
|
||||||
params = OrbitHelper.params
|
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|
|
files = writing_conference.writing_conference_files.map do |file|
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue