Make sure we don't internal error when signing is disabled

This commit is contained in:
Joseph Schorr 2017-04-19 12:27:01 -04:00
parent 14054a237a
commit 8981fcab78
2 changed files with 11 additions and 2 deletions

View file

@ -378,7 +378,7 @@ class Repository(RepositoryParamResource):
'is_organization': repo.namespace_user.organization,
'is_starred': is_starred,
'status_token': repo.badge_token if not is_public else '',
'trust_enabled': features.SIGNING and repo.trust_enabled,
'trust_enabled': bool(features.SIGNING) and repo.trust_enabled,
}
if stats is not None: