Skip to content

Commit

Permalink
Include views in set of administered ontologies
Browse files Browse the repository at this point in the history
Resolves #371
  • Loading branch information
jvendetti committed Dec 10, 2024
1 parent 4f12f61 commit 1ec2c46
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/controllers/home_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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 }
Expand Down
2 changes: 1 addition & 1 deletion app/controllers/users_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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 }
Expand Down

0 comments on commit 1ec2c46

Please sign in to comment.