mirror of
https://github.com/haiwen/seahub.git
synced 2025-09-13 13:50:07 +00:00
[api2] Fixed bug in listing shared repos.
This commit is contained in:
@@ -906,16 +906,13 @@ class DirView(APIView):
|
|||||||
|
|
||||||
class SharedRepos(APIView):
|
class SharedRepos(APIView):
|
||||||
"""
|
"""
|
||||||
Support uniform interface for shared libraries.
|
List repos that a user share to others/groups/public.
|
||||||
"""
|
"""
|
||||||
authentication_classes = (TokenAuthentication, )
|
authentication_classes = (TokenAuthentication, )
|
||||||
permission_classes = (IsAuthenticated, IsRepoOwner)
|
permission_classes = (IsAuthenticated, )
|
||||||
throttle_classes = (UserRateThrottle, )
|
throttle_classes = (UserRateThrottle, )
|
||||||
|
|
||||||
def get(self, request, format=None):
|
def get(self, request, format=None):
|
||||||
"""
|
|
||||||
List repos that I share to others or groups or public.
|
|
||||||
"""
|
|
||||||
username = request.user.username
|
username = request.user.username
|
||||||
shared_repos = []
|
shared_repos = []
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user