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:
@@ -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):
|
||||
|
Reference in New Issue
Block a user