Fix hidden status
This commit is contained in:
parent
de48a045ab
commit
bcb21d2126
|
@ -1,6 +1,6 @@
|
||||||
class PersonalDiplomasController < ApplicationController
|
class PersonalDiplomasController < ApplicationController
|
||||||
def index
|
def index
|
||||||
diplomas = Diploma.all
|
diplomas = Diploma.where(:is_hidden=>false).all
|
||||||
diploma_list = diplomas.collect do |diploma|
|
diploma_list = diplomas.collect do |diploma|
|
||||||
{
|
{
|
||||||
"member" => diploma.member_profile.name,
|
"member" => diploma.member_profile.name,
|
||||||
|
@ -25,7 +25,7 @@ class PersonalDiplomasController < ApplicationController
|
||||||
|
|
||||||
def show
|
def show
|
||||||
params = OrbitHelper.params
|
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,
|
"school_name" => diploma.school_name,
|
||||||
|
|
Loading…
Reference in New Issue