Skip to content
This repository has been archived by the owner on Nov 4, 2022. It is now read-only.

Commit

Permalink
Add default static config for SAEIS
Browse files Browse the repository at this point in the history
  • Loading branch information
marksparkza committed Jun 29, 2021
1 parent 64f30b5 commit 4945cb4
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions migrate/initdata.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ def initialize_scopes():
{'key': 'ODP.Catalogue', 'description': 'The ODP Metadata Catalogue'},
{'key': 'SAEON.Observations.WebAPI', 'description': 'The SAEON Observations Database'},
{'key': 'SAEON.DataPortal', 'description': 'The SAEON Data Portal'},
{'key': 'SAEIS.WebSite', 'description': 'The South African Estuary Information System'},
]
for row in rows:
key = row['key']
Expand All @@ -53,6 +54,7 @@ def initialize_capabilities():
'ODP.Catalogue': ['harvester'],
'SAEON.Observations.WebAPI': ['admin', 'staff'],
'SAEON.DataPortal': ['admin', 'datascientist', 'curator', 'staff'],
'SAEIS.WebSite': ['admin', 'contributor', 'staff'],
}
for scope, roles in capabilities.items():
for role in roles:
Expand Down

0 comments on commit 4945cb4

Please sign in to comment.