Fix hidden status
This commit is contained in:
parent
a6821b0437
commit
1de7e5c509
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue