This commit is contained in:
kevgliss 2015-08-29 11:53:46 -07:00
parent 80136834b5
commit f492e9ec1b
1 changed files with 2 additions and 1 deletions

View File

@ -572,7 +572,8 @@ class Certificates(AuthenticatedResource):
cert = service.get(certificate_id)
role = role_service.get_by_name(cert.owner)
permission = UpdateCertificatePermission(certificate_id, role.name)
permission = UpdateCertificatePermission(certificate_id, getattr(role, 'name', None))
if permission.can():
return service.update(