Make sure we don't internal error when signing is disabled
This commit is contained in:
parent
14054a237a
commit
8981fcab78
2 changed files with 11 additions and 2 deletions
|
@ -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:
|
||||
|
|
Reference in a new issue