1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-10 03:11:07 +00:00

get dir_id from headers

This commit is contained in:
wangjianhui
2018-12-13 11:15:20 +08:00
parent d6aa80c72e
commit c0651fbf5f
4 changed files with 8 additions and 12 deletions

View File

@@ -2047,14 +2047,10 @@ def get_dir_entrys_by_id(request, repo, path, dir_id, request_type=None):
else:
dentrys = dir_list + file_list
data = dict()
data["data"] = dentrys
data["oid"] = dir_id
data["dir_perm"] = seafile_api.check_permission_by_path(repo.id, path, username)
response = HttpResponse(json.dumps(data), status=200,
response = HttpResponse(json.dumps(dentrys), status=200,
content_type=json_content_type)
# response["oid"] = dir_id
# response["dir_perm"] = seafile_api.check_permission_by_path(repo.id, path, username)
response["oid"] = dir_id
response["dir_perm"] = seafile_api.check_permission_by_path(repo.id, path, username)
return response
def get_shared_link(request, repo_id, path):