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

Fixed bug in checking duplication repos

This commit is contained in:
ZhengXie
2012-09-29 17:50:43 +08:00
parent 0a239998f2
commit 5502e85ebb

View File

@@ -223,11 +223,12 @@ def get_accessible_repos(request, repo):
return True
return False
accessible_repos = set()
accessible_repos = []
for r in owned_repos + shared_repos + groups_repos:
if not r.encrypted:
r.has_subdir = check_has_subdir(r)
accessible_repos.add(r)
if not has_repo(accessible_repos, r):
if not r.encrypted:
r.has_subdir = check_has_subdir(r)
accessible_repos.append(r)
return accessible_repos