1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-01 07:01:12 +00:00

Fixed bug in org shared links

This commit is contained in:
zhengxie
2013-01-08 16:35:34 +08:00
parent 5249230986
commit e536fbfef8
4 changed files with 26 additions and 16 deletions

View File

@@ -185,7 +185,7 @@ def repo_remove_share(request):
@login_required
def share_admin(request):
"""
List personal repos I share to others, include groups and users.
List personal shared repos and shared links.
"""
username = request.user.username
@@ -244,8 +244,11 @@ def share_admin(request):
fs.shared_link = gen_shared_link(request, fs.token, 'f')
else:
fs.filename = os.path.basename(fs.path[:-1])
fs.shared_link = gen_shared_link(request, fs.token, 'd')
fs.repo = get_repo(fs.repo_id)
fs.shared_link = gen_shared_link(request, fs.token, 'd')
r = get_repo(fs.repo_id)
if not r: # get_repo may returns None
continue
fs.repo = r
p_fileshares.append(fs)
return render_to_response('repo/share_admin.html', {