diff --git a/app/controllers/home_controller.rb b/app/controllers/home_controller.rb index c0d98a519..ad52a3b0a 100644 --- a/app/controllers/home_controller.rb +++ b/app/controllers/home_controller.rb @@ -107,7 +107,7 @@ def account @user_ontologies = @user.customOntology @user_ontologies ||= [] - @admin_ontologies = LinkedData::Client::Models::Ontology.where do |o| + @admin_ontologies = LinkedData::Client::Models::Ontology.where(include_views: true) do |o| o.administeredBy.include? @user.id end @admin_ontologies.sort! { |a, b| a.name.downcase <=> b.name.downcase } diff --git a/app/controllers/users_controller.rb b/app/controllers/users_controller.rb index a65b0eee3..afffe9539 100644 --- a/app/controllers/users_controller.rb +++ b/app/controllers/users_controller.rb @@ -21,7 +21,7 @@ def show @user_ontologies = @user.customOntology # Copied from home controller, account action - @admin_ontologies = LinkedData::Client::Models::Ontology.where do |o| + @admin_ontologies = LinkedData::Client::Models::Ontology.where(include_views: true) do |o| o.administeredBy.include? @user.id end @admin_ontologies.sort! { |a, b| a.name.downcase <=> b.name.downcase }