mirror of
https://github.com/haiwen/seahub.git
synced 2025-07-13 06:55:59 +00:00
Merge pull request #1181 from haiwen/repo-history-change
rm encrypted repo password check when get repo history
This commit is contained in:
commit
ed173f5a56
@ -3965,11 +3965,6 @@ class RepoHistoryChange(APIView):
|
|||||||
if not check_folder_permission(request, repo_id, '/'):
|
if not check_folder_permission(request, repo_id, '/'):
|
||||||
return api_error(status.HTTP_403_FORBIDDEN, 'Permission denied.')
|
return api_error(status.HTTP_403_FORBIDDEN, 'Permission denied.')
|
||||||
|
|
||||||
if repo.encrypted and not is_passwd_set(repo_id, request.user.username):
|
|
||||||
return HttpResponse(json.dumps({"err": 'Library is encrypted'}),
|
|
||||||
status=400,
|
|
||||||
content_type=json_content_type)
|
|
||||||
|
|
||||||
commit_id = request.GET.get('commit_id', '')
|
commit_id = request.GET.get('commit_id', '')
|
||||||
if not commit_id:
|
if not commit_id:
|
||||||
return HttpResponse(json.dumps({"err": 'Invalid argument'}),
|
return HttpResponse(json.dumps({"err": 'Invalid argument'}),
|
||||||
|
Loading…
Reference in New Issue
Block a user