mirror of
https://github.com/haiwen/seahub.git
synced 2025-08-30 13:23:14 +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 = []
|
share_list = []
|
||||||
username = request.user.username
|
username = request.user.username
|
||||||
share_in = seafile_api.get_share_in_repo_list(username, -1, -1)
|
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:
|
if e.share_type == 'personal' and e.user == to_email:
|
||||||
share_list.append(e)
|
share_list.append(e)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user