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

Fixed bug

This commit is contained in:
ZhengXie
2012-10-09 14:20:01 +08:00
parent 4fba6bd5ad
commit e0328f503e

View File

@@ -222,12 +222,12 @@ def get_accessible_repos(request, repo):
return False
accessible_repos = []
for r in owned_repos:
for r in owned_repos + groups_repos:
if not has_repo(accessible_repos, r) and not r.encrypted:
r.has_subdir = check_has_subdir(r)
accessible_repos.append(r)
for r in shared_repos + groups_repos:
for r in shared_repos:
if not has_repo(accessible_repos, r) and not r.encrypted:
# For compatibility with diffrent fields names in Repo and
# SharedRepo objects.