mirror of
https://github.com/haiwen/seahub.git
synced 2025-09-01 23:20:51 +00:00
Fixed bug in checking duplication repos
This commit is contained in:
9
utils.py
9
utils.py
@@ -223,11 +223,12 @@ def get_accessible_repos(request, repo):
|
|||||||
return True
|
return True
|
||||||
return False
|
return False
|
||||||
|
|
||||||
accessible_repos = set()
|
accessible_repos = []
|
||||||
for r in owned_repos + shared_repos + groups_repos:
|
for r in owned_repos + shared_repos + groups_repos:
|
||||||
if not r.encrypted:
|
if not has_repo(accessible_repos, r):
|
||||||
r.has_subdir = check_has_subdir(r)
|
if not r.encrypted:
|
||||||
accessible_repos.add(r)
|
r.has_subdir = check_has_subdir(r)
|
||||||
|
accessible_repos.append(r)
|
||||||
|
|
||||||
return accessible_repos
|
return accessible_repos
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user