diff --git a/docs/artifact-manager.md b/docs/artifact-manager.md index 7556e4d1..85fbdbdd 100644 --- a/docs/artifact-manager.md +++ b/docs/artifact-manager.md @@ -255,6 +255,9 @@ Permissions can be set both at the artifact level and the workspace level. In th **Permission Levels:** +- **n**: No access to the artifact. +- **l**: List-only access (includes `list`). +- **l+**: List and create access (includes `list`, `create`, `commit`). - **r**: Read-only access (includes `read`, `get_file`, `list_files`, `list`). - **r+**: Read and create access (includes `read`, `get_file`, `list_files`, `list`, `put_file`, `create`, `commit`). - **rw**: Read and write access (includes `read`, `get_file`, `list_files`, `list`, `edit`, `commit`, `put_file`, `remove_file`). diff --git a/hypha/VERSION b/hypha/VERSION index f3349ad2..0d9d79ca 100644 --- a/hypha/VERSION +++ b/hypha/VERSION @@ -1,3 +1,3 @@ { - "version": "0.20.38.post18" + "version": "0.20.38.post19" } diff --git a/hypha/artifact.py b/hypha/artifact.py index 22005d66..6c907054 100644 --- a/hypha/artifact.py +++ b/hypha/artifact.py @@ -301,6 +301,10 @@ def _expand_permission(self, permission): if isinstance(permission, str): if permission == "n": return [] + elif permission == "l": + return ["list"] + elif permission == "l+": + return ["list", "create", "commit"] elif permission == "r": return ["read", "get_file", "list_files", "list"] elif permission == "r+":