Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix: hide private artefacts when getting all artefacts #187

Open
wants to merge 1 commit into
base: development
Choose a base branch
from

Conversation

imadbourouche
Copy link
Member

@imadbourouche imadbourouche commented Jan 31, 2025

What's change

Hide private artefacts (ontologies) by only getting the public ontologies with the viewingRestriction

Ontology.where(viewingRestriction: 'public').to_a

@imadbourouche imadbourouche self-assigned this Jan 31, 2025
else
Ontology.where.filter(Goo::Filter.new(:viewOf).unbound).include(:acronym).to_a
Ontology.where(viewingRestriction: 'public').filter(Goo::Filter.new(:viewOf).unbound).include(:acronym).to_a

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

when you admin you can see them all.
And if you are the admin of the ontology you can see it also even if private.

@syphax-bouazzouni syphax-bouazzouni force-pushed the development branch 4 times, most recently from bbd132c to 194fcfb Compare February 5, 2025 12:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants