comments on alembic changes. resolve invalid usage of log_service.create

This commit is contained in:
Curtis Castrapel
2018-02-26 12:08:31 -08:00
parent a28fdac242
commit cca3797669
3 changed files with 7 additions and 3 deletions

View File

@ -270,7 +270,7 @@ class CertificatesList(AuthenticatedResource):
cert = service.create(**data)
if isinstance(cert, Certificate):
# only log if created, not pending
log_service.create(g.user, 'create_cert', 'OK', certificate=cert)
log_service.create(g.user, 'create_cert', certificate=cert)
return cert
return dict(message="You are not authorized to use the authority: {0}".format(data['authority'].name)), 403