Closes #55
This commit is contained in:
parent
8d09d865b1
commit
bf8ce354e5
|
@ -574,7 +574,8 @@ class Certificates(AuthenticatedResource):
|
||||||
|
|
||||||
cert = service.get(certificate_id)
|
cert = service.get(certificate_id)
|
||||||
role = role_service.get_by_name(cert.owner)
|
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():
|
if permission.can():
|
||||||
return service.update(
|
return service.update(
|
||||||
|
|
Loading…
Reference in New Issue