Fix hidden status

This commit is contained in:
manson 2014-07-03 19:32:20 +08:00
parent a6821b0437
commit 1de7e5c509
1 changed files with 2 additions and 2 deletions

View File

@ -1,6 +1,6 @@
class PersonalHonorsController < ApplicationController
def index
honors = Honor.all
honors = Honor.where(:is_hidden=>false).all
honor_list = honors.collect do |honor|
{
"year" => honor.year,
@ -25,7 +25,7 @@ class PersonalHonorsController < ApplicationController
def show
params = OrbitHelper.params
honor = Honor.find_by(uid: params[:uid])
honor = Honor.where(:is_hidden=>false).find_by(uid: params[:uid])
{
"year" => honor.year,