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:
@@ -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 = []
|
||||
|
||||
|
Reference in New Issue
Block a user