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