Skip to content

Commit

Permalink
Allow private projects to be accessed from CLI. Fixes #521
Browse files Browse the repository at this point in the history
  • Loading branch information
osma committed Aug 20, 2021
1 parent 2da4a34 commit 883e442
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion annif/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,8 @@ def get_project(project_id):
"""
Helper function to get a project by ID and bail out if it doesn't exist"""
try:
return annif.registry.get_project(project_id, min_access=Access.hidden)
return annif.registry.get_project(project_id,
min_access=Access.private)
except ValueError:
click.echo(
"No projects found with id \'{0}\'.".format(project_id),
Expand Down

0 comments on commit 883e442

Please sign in to comment.