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

Fixed bug in org repo share, and clean code

This commit is contained in:
xiez
2012-09-03 16:14:15 +08:00
parent 29c9ff11df
commit d138bee164
8 changed files with 195 additions and 166 deletions

View File

@@ -254,7 +254,7 @@ def get_accessible_repos(request, repo):
group_repo = get_repo(repo_id)
if not group_repo:
continue
group_repo.share_from = seafserv_threaded_rpc.get_group_repo_share_from(repo_id)
group_repo.share_from = seafserv_threaded_rpc.get_group_repo_owner(repo_id)
if email != group_repo.share_from:
groups_repos.append(group_repo)