]> WPIA git - gigi.git/blobdiff - src/org/cacert/gigi/dbObjects/Certificate.java
add: cert-profile loading from config
[gigi.git] / src / org / cacert / gigi / dbObjects / Certificate.java
index 479a183ae82a5c59d80c9ca4ae1649627572ed82..ed3d5b4a244b0bb9e28b1c9a7e5486933b0c3682 100644 (file)
@@ -135,7 +135,7 @@ public class Certificate {
     private CACertificate ca;
 
     public Certificate(User owner, HashMap<String, String> dn, String md, String csr, CSRType csrType, CertificateProfile profile, SubjectAlternateName... sans) throws GigiApiException {
-        if ( !owner.canIssue(profile)) {
+        if ( !profile.canBeIssuedBy(owner)) {
             throw new GigiApiException("You are not allowed to issue these certificates.");
         }
         this.owner = owner;