Remove unneeded repo filter

This commit is contained in:
Joseph Schorr 2015-05-06 20:55:17 -04:00
parent e647d91e8b
commit a46d367276

View file

@ -145,11 +145,7 @@ class RepositoryList(ApiResource):
repo['is_starred'] = repo_obj.id in star_lookup
return repo
response['repositories'] = [repo_view(repo) for repo in repo_query
if (repo.visibility.name == 'public' or
ReadRepositoryPermission(repo.namespace_user.username,
repo.name).can())]
response['repositories'] = [repo_view(repo) for repo in repo_query]
return response