Skip to content

Commit

Permalink
only stations should be editable collection (#689)
Browse files Browse the repository at this point in the history
* only stations should be editable collections

* Update entrypoint.sh
  • Loading branch information
maaikelimper authored Jun 4, 2024
1 parent 1a66f49 commit eafb9a5
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 10 deletions.
9 changes: 0 additions & 9 deletions wis2box-management/docker/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -91,15 +91,6 @@ else
# Add the token
wis2box auth add-token --path collections/stations -y
fi
# repeat for collections/discovery-metadata
is_restricted=$(wis2box auth is-restricted-path --path collections/discovery-metadata)
if [ "$is_restricted" = "True" ]; then
echo "collections/discovery-metadata execution is restricted"
else
echo "restricting collections/discovery-metadata"
# Add the token
wis2box auth add-token --path collections/discovery-metadata -y
fi

echo "END /entrypoint.sh"
exec "$@"
2 changes: 1 addition & 1 deletion wis2box-management/wis2box/api/config/pygeoapi.py
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ def prepare_collection(self, meta: dict) -> bool:

resource_id = meta['id']

if meta['id'] in ['discovery-metadata', 'stations']:
if meta['id'] in ['stations']:
editable = True
else:
# avoid colons in resource id
Expand Down

0 comments on commit eafb9a5

Please sign in to comment.