mirror of
https://github.com/haiwen/seahub.git
synced 2025-09-23 20:37:42 +00:00
update cloude mode check
check if is cloud_mode before use `seafile_api.is_inner_pub_repo()`
This commit is contained in:
@@ -351,7 +351,7 @@ def list_lib_dir(request, repo_id):
|
|||||||
else:
|
else:
|
||||||
if seafile_api.list_repo_shared_to(username, repo_id) or \
|
if seafile_api.list_repo_shared_to(username, repo_id) or \
|
||||||
seafile_api.list_repo_shared_group_by_user(username, repo_id) or \
|
seafile_api.list_repo_shared_group_by_user(username, repo_id) or \
|
||||||
seafile_api.is_inner_pub_repo(repo_id):
|
(not request.cloud_mode and seafile_api.is_inner_pub_repo(repo_id)):
|
||||||
result["has_been_shared_out"] = True
|
result["has_been_shared_out"] = True
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
logger.error(e)
|
logger.error(e)
|
||||||
|
Reference in New Issue
Block a user