From 9b31475c9b4fb100a60854756eb8ce5a5191ea80 Mon Sep 17 00:00:00 2001 From: zhengxie Date: Mon, 25 Feb 2013 11:36:32 +0800 Subject: [PATCH] [api2] Fixed bug in listing shared repos. --- api2/views.py | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/api2/views.py b/api2/views.py index f984adc427..8aca757888 100644 --- a/api2/views.py +++ b/api2/views.py @@ -906,16 +906,13 @@ class DirView(APIView): class SharedRepos(APIView): """ - Support uniform interface for shared libraries. + List repos that a user share to others/groups/public. """ authentication_classes = (TokenAuthentication, ) - permission_classes = (IsAuthenticated, IsRepoOwner) + permission_classes = (IsAuthenticated, ) throttle_classes = (UserRateThrottle, ) def get(self, request, format=None): - """ - List repos that I share to others or groups or public. - """ username = request.user.username shared_repos = []