mirror of
https://github.com/haiwen/seahub.git
synced 2025-09-18 16:36:15 +00:00
[api] update repos view
do not return sub-repo info if sub-repo is not enabled
This commit is contained in:
@@ -529,6 +529,9 @@ class Repos(APIView):
|
|||||||
filter_by[f] = True
|
filter_by[f] = True
|
||||||
|
|
||||||
email = request.user.username
|
email = request.user.username
|
||||||
|
if not UserOptions.objects.is_sub_lib_enabled(email):
|
||||||
|
filter_by['sub'] = False
|
||||||
|
|
||||||
repos_json = []
|
repos_json = []
|
||||||
if filter_by['mine']:
|
if filter_by['mine']:
|
||||||
owned_repos = get_owned_repo_list(request)
|
owned_repos = get_owned_repo_list(request)
|
||||||
|
Reference in New Issue
Block a user