1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-08 18:30:53 +00:00

Allow share repo to unjoined group

This commit is contained in:
xiez
2012-09-22 17:46:56 +08:00
parent 393b43f157
commit b16b7ece18
11 changed files with 101 additions and 129 deletions

View File

@@ -32,7 +32,7 @@ from pysearpc import SearpcError
from seaserv import ccnet_rpc, ccnet_threaded_rpc, get_repos, \
get_repo, get_commits, get_branches, \
seafserv_threaded_rpc, seafserv_rpc, get_binding_peerids, \
check_group_staff, check_permission, get_personal_groups, get_group_repos
check_group_staff, check_permission, get_personal_groups_by_user, get_group_repos
from seahub.utils import list_to_string, \
get_httpserver_root, gen_token, \
@@ -290,7 +290,7 @@ class ReposView(ResponseMixin, View):
}
repos_json.append(repo)
groups = get_personal_groups(email)
groups = get_personal_groups_by_user(email)
for group in groups:
g_repos = get_group_repos(group.id, email)
calculate_repo_info (g_repos, email)