From f492e9ec1b9a99c43755c68dd2d4f0faf731242f Mon Sep 17 00:00:00 2001 From: kevgliss Date: Sat, 29 Aug 2015 11:53:46 -0700 Subject: [PATCH] Closes #55 --- lemur/certificates/views.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lemur/certificates/views.py b/lemur/certificates/views.py index b6cb597d..fb8b70d5 100644 --- a/lemur/certificates/views.py +++ b/lemur/certificates/views.py @@ -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(