]> WPIA git - gigi.git/blobdiff - src/org/cacert/gigi/pages/account/certs/CertificateRequest.java
add: cert-profile loading from config
[gigi.git] / src / org / cacert / gigi / pages / account / certs / CertificateRequest.java
index f066cc3d8ec151f78ae180c64941667f208b613d..9eee2940b980b9150974155decb64170a2b13359 100644 (file)
@@ -342,7 +342,7 @@ public class CertificateRequest {
     public Certificate draft() throws GigiApiException {
 
         GigiApiException error = new GigiApiException();
-        if ( !u.canIssue(this.profile)) {
+        if ( !this.profile.canBeIssuedBy(u)) {
             this.profile = CertificateProfile.getById(1);
             error.mergeInto(new GigiApiException("Certificate Profile is invalid."));
             throw error;