1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-08-02 15:57:31 +00:00

fix convert_repo_path bug

This commit is contained in:
lian 2022-04-07 11:49:28 +08:00
parent a4ce27ee3e
commit eeba60f6e8

View File

@ -1139,7 +1139,8 @@ def react_fake_view(request, **kwargs):
return render_error(request, error_msg)
converted_path = repo_path_dict['path']
if not seafile_api.get_dirent_by_path(converted_repo_id, converted_path):
if converted_path != '/' and not seafile_api.get_dirent_by_path(converted_repo_id, converted_path):
error_msg = 'Dirent %s not found.' % converted_path
return render_error(request, error_msg)