Fix hidden status

This commit is contained in:
manson 2014-07-03 19:31:30 +08:00
parent de48a045ab
commit bcb21d2126
1 changed files with 2 additions and 2 deletions

View File

@ -1,6 +1,6 @@
class PersonalDiplomasController < ApplicationController
def index
diplomas = Diploma.all
diplomas = Diploma.where(:is_hidden=>false).all
diploma_list = diplomas.collect do |diploma|
{
"member" => diploma.member_profile.name,
@ -25,7 +25,7 @@ class PersonalDiplomasController < ApplicationController
def show
params = OrbitHelper.params
diploma = Diploma.find_by(uid: params[:uid])
diploma = Diploma.where(:is_hidden=>false).find_by(uid: params[:uid])
{
"school_name" => diploma.school_name,