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:
@@ -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'
|
||||||
|
|
||||||
|
3
utils.py
3
utils.py
@@ -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)
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user