1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-16 07:08:55 +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

@@ -226,4 +226,5 @@ LOGIN_URL = SITE_ROOT + 'accounts/login'
USER_TOTAL_SPACE = 2 * pow(2,30) USER_TOTAL_SPACE = 2 * pow(2,30)
SEAFILE_VERSION = '1.0.0' SEAFILE_VERSION = '1.1.0'

View File

@@ -228,12 +228,13 @@ def get_accessible_repos(request, repo):
accessible_repos.append(r) accessible_repos.append(r)
for r in shared_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 # For compatibility with diffrent fields names in Repo and
# SharedRepo objects. # SharedRepo objects.
r.id = r.repo_id r.id = r.repo_id
r.name = r.repo_name r.name = r.repo_name
r.desc = r.repo_desc r.desc = r.repo_desc
if not has_repo(accessible_repos, r) and not r.encrypted:
r.has_subdir = check_has_subdir(r) r.has_subdir = check_has_subdir(r)
accessible_repos.append(r) accessible_repos.append(r)