diff --git a/research.py b/research.py index 6463e6fba..2f7b8e48b 100644 --- a/research.py +++ b/research.py @@ -647,19 +647,11 @@ def api_research_collection_details(ctx, path): # Retrieve lock count. lock_count = meta_form.get_coll_lock_count(ctx, path) - # Check if vault is accessible. - vault_path = "" - vault_name = group.replace("research-", "vault-", 1) - vault_coll = '/'.join(path.split('/')[0:3]) - if collection.exists(ctx, vault_coll + "/" + vault_name): - vault_path = vault_name - return {"basename": basename, "status": status.value, "member_type": member_type, "is_datamanager": is_datamanager, - "lock_count": lock_count, - "vault_path": vault_path} + "lock_count": lock_count} @api.make() diff --git a/vault.py b/vault.py index d738cfb0a..d0af4282c 100644 --- a/vault.py +++ b/vault.py @@ -556,7 +556,6 @@ def api_vault_collection_details(ctx, path): if space != pathutil.Space.VAULT: return {} - dirname = pathutil.dirname(path) basename = pathutil.basename(path) # Check if collection is vault package. @@ -616,12 +615,6 @@ def api_vault_collection_details(ctx, path): if user_name.startswith(("research-", "deposit-")): research_group_access = True - # Check if research space is accessible. - research_path = "" - research_name = group.replace("vault-", "research-", 1) - if collection.exists(ctx, pathutil.chop(dirname)[0] + "/" + research_name): - research_path = research_name - result = { "basename": basename, "status": status, @@ -629,8 +622,7 @@ def api_vault_collection_details(ctx, path): "has_datamanager": has_datamanager, "is_datamanager": is_datamanager, "vault_action_pending": vault_action_pending, - "research_group_access": research_group_access, - "research_path": research_path + "research_group_access": research_group_access } if config.enable_data_package_archive: import vault_archive