diff --git a/wis2box-management/wis2box/auth.py b/wis2box-management/wis2box/auth.py index f8e5c0a8c..c22edfebb 100644 --- a/wis2box-management/wis2box/auth.py +++ b/wis2box-management/wis2box/auth.py @@ -117,6 +117,7 @@ def is_restricted_topic(ctx, topic_hierarchy): th, _ = validate_and_load(topic_hierarchy) click.echo(not is_resource_open(th.dotpath)) + @click.command() @click.pass_context @click.option('--path', '-p') @@ -124,6 +125,7 @@ def is_restricted_path(ctx, path): """Check if path has access control""" click.echo(not is_resource_open(path)) + @click.command() @click.pass_context @cli_helpers.OPTION_TOPIC_HIERARCHY @@ -133,6 +135,7 @@ def has_access_topic(ctx, topic_hierarchy, token): th, _ = validate_and_load(topic_hierarchy) click.echo(is_token_authorized(th.dotpath, token)) + @click.command() @click.pass_context @click.option('--path', '-p') @@ -141,6 +144,7 @@ def has_access_path(ctx, path, token): """Check if a token has access to a path""" click.echo(is_token_authorized(path, token)) + @click.command() @click.pass_context @cli_helpers.OPTION_TOPIC_HIERARCHY