1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-07-13 15:05:30 +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:
Daniel Pan 2016-05-09 15:55:05 +08:00
commit ed173f5a56

View File

@ -3965,11 +3965,6 @@ class RepoHistoryChange(APIView):
if not check_folder_permission(request, repo_id, '/'):
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', '')
if not commit_id:
return HttpResponse(json.dumps({"err": 'Invalid argument'}),