From 2d7f2a8416575d3b3fab974c4eb2b7d4b8e90773 Mon Sep 17 00:00:00 2001 From: lian Date: Mon, 9 May 2016 15:01:35 +0800 Subject: [PATCH] rm encrypted repo password check when get repo history --- seahub/api2/views.py | 5 ----- 1 file changed, 5 deletions(-) diff --git a/seahub/api2/views.py b/seahub/api2/views.py index 30fa841265..05a1ae9587 100644 --- a/seahub/api2/views.py +++ b/seahub/api2/views.py @@ -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'}),