Skip to content

Commit

Permalink
Merge pull request #569 from grycap/egi_brand_v2
Browse files Browse the repository at this point in the history
Egi brand v2
  • Loading branch information
micafer authored Aug 26, 2024
2 parents 132ddc0 + 45e1d27 commit 183257d
Showing 1 changed file with 5 additions and 2 deletions.
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

0 comments on commit 183257d

Please sign in to comment.