1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-18 08:16:07 +00:00

[api] update repos view

do not return sub-repo info if sub-repo is not enabled
This commit is contained in:
lian
2015-05-14 13:36:03 +08:00
parent f68769fb48
commit e8cdc942e8

View File

@@ -529,6 +529,9 @@ class Repos(APIView):
filter_by[f] = True
email = request.user.username
if not UserOptions.objects.is_sub_lib_enabled(email):
filter_by['sub'] = False
repos_json = []
if filter_by['mine']:
owned_repos = get_owned_repo_list(request)