diff --git a/includes/account.php b/includes/account.php index 9daa2c9..3b2c36e 100644 --- a/includes/account.php +++ b/includes/account.php @@ -1678,7 +1678,7 @@ $csrsubject .= "/subjectAltName=".$SAN; $type=""; - if($_REQUEST["ocspcert"]!="") $type="8"; + if($_REQUEST["ocspcert"]!="" && $_SESSION['profile']['admin'] == 1) $type="8"; if($_SESSION['_config']['rowid']['0'] > 0) { @@ -1761,6 +1761,7 @@ `created`='".$row['created']."', `modified`=NOW(), `subject`='".$row['subject']."', + `type`='".$row['type']."', `rootcert`='".$row['rootcert']."'"; mysql_query($query); $newid = mysql_insert_id();