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

Devel #568

Merged
merged 3 commits into from
Aug 26, 2024
Merged

Devel #568

Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions app/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -846,8 +846,11 @@ def discover_oidc_urls(base_url):


def valid_template_vos(user_vos, template_metadata):
if 'vos' in template_metadata:
return [vo for vo in user_vos if vo in template_metadata['vos']]
if 'vos' in template_metadata and template_metadata['vos']:
if not user_vos:
return []
else:
return [vo for vo in user_vos if vo in template_metadata['vos']]
else:
return ['all']

Expand Down
Loading