mirror of
https://github.com/haiwen/seahub.git
synced 2025-08-30 04:25:47 +00:00
List share out/in repos in user_share_list
This commit is contained in:
parent
0121283ffe
commit
c32ceac9a0
@ -576,7 +576,8 @@ def user_share_list(request, id_or_email):
|
||||
share_list = []
|
||||
username = request.user.username
|
||||
share_in = seafile_api.get_share_in_repo_list(username, -1, -1)
|
||||
for e in share_in:
|
||||
share_out = seafile_api.get_share_out_repo_list(username, -1, -1)
|
||||
for e in (share_in+share_out):
|
||||
if e.share_type == 'personal' and e.user == to_email:
|
||||
share_list.append(e)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user