1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-12 13:24:52 +00:00

[api2] Fixed bug in listing shared repos.

This commit is contained in:
zhengxie
2013-02-25 11:36:32 +08:00
parent cfa3b8c37e
commit 9b31475c9b

View File

@@ -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 = []