From a9fe26fb562847c9d81115b8d72a35a6bdf8d3f6 Mon Sep 17 00:00:00 2001 From: Jimmy Zelinskie Date: Mon, 23 Feb 2015 15:36:05 -0500 Subject: [PATCH] api: fix bug in showing starred logic --- endpoints/api/repository.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/endpoints/api/repository.py b/endpoints/api/repository.py index 12d4fef44..1e7e14d41 100644 --- a/endpoints/api/repository.py +++ b/endpoints/api/repository.py @@ -133,7 +133,7 @@ class RepositoryList(ApiResource): 'description': repo_obj.description, 'is_public': repo_obj.visibility.name == 'public', } - if get_authenticated_user(): + if get_authenticated_user() and args['private']: repo['is_starred'] = repo_obj.id in star_lookup return repo