mirror of
https://github.com/haiwen/seahub.git
synced 2025-09-15 06:44:16 +00:00
Merge branch '4.4' into 5.0
This commit is contained in:
@@ -2565,7 +2565,7 @@ class BeShared(APIView):
|
||||
"""
|
||||
List repos that others/groups share to user.
|
||||
"""
|
||||
authentication_classes = (TokenAuthentication, )
|
||||
authentication_classes = (TokenAuthentication, SessionAuthentication )
|
||||
permission_classes = (IsAuthenticated, )
|
||||
throttle_classes = (UserRateThrottle, )
|
||||
|
||||
@@ -2592,7 +2592,7 @@ class BeShared(APIView):
|
||||
cmmts = get_commits(r_id, 0, 1)
|
||||
last_commit = cmmts[0] if cmmts else None
|
||||
r.last_modified = last_commit.ctime if last_commit else 0
|
||||
r.share_type = 'group'
|
||||
r._dict['share_type'] = 'group'
|
||||
r.user = seafile_api.get_repo_owner(r_id)
|
||||
r.user_perm = check_permission(r_id, username)
|
||||
shared_repos.append(r)
|
||||
|
Reference in New Issue
Block a user