Commit f5be6109 authored by Jérome Perrin's avatar Jérome Perrin

certificate_authority: move security declaration above corresponding method

parent ea340e2d
Pipeline #19699 passed with stage
......@@ -4,7 +4,6 @@ from Products.ERP5Type import Permissions
class Person(ERP5Person):
security = ClassSecurityInfo()
security.declarePublic('getCertificate')
def _getCertificateLoginDocument(self):
for _erp5_login in self.objectValues(
......@@ -50,6 +49,7 @@ class Person(ERP5Person):
return self.getPortalObject().portal_certificate_authority\
.revokeCertificateByCommonName(self._getCertificateLoginDocument().getReference())
security.declarePublic('getCertificate')
def getCertificate(self):
"""Returns new SSL certificate"""
self._checkCertificateRequest()
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment