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

Modify version, and fixed bug in get accesible repos

This commit is contained in:
zhengxie
2012-10-12 16:40:30 +08:00
parent e189c91c9e
commit 7021b83508
2 changed files with 9 additions and 7 deletions

View File

@@ -228,15 +228,16 @@ def get_accessible_repos(request, repo):
accessible_repos.append(r)
for r in shared_repos:
# For compatibility with diffrent fields names in Repo and
# SharedRepo objects.
r.id = r.repo_id
r.name = r.repo_name
r.desc = r.repo_desc
if not has_repo(accessible_repos, r) and not r.encrypted:
# For compatibility with diffrent fields names in Repo and
# SharedRepo objects.
r.id = r.repo_id
r.name = r.repo_name
r.desc = r.repo_desc
r.has_subdir = check_has_subdir(r)
accessible_repos.append(r)
return accessible_repos
def valid_previewed_file(filename):