Skip to content

Commit 8fa83dc

Browse files
fix(CertificateAuthority): use ca_in_use instead of cert_in_use #856
1 parent bb6c154 commit 8fa83dc

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

pfSense-pkg-RESTAPI/files/usr/local/pkg/RESTAPI/Models/CertificateAuthority.inc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ class CertificateAuthority extends Model {
115115
*/
116116
public function _delete(): void {
117117
# Do not allow this CertificateAuthority to be deleted if it is in use
118-
if (cert_in_use($this->refid->value)) {
118+
if (ca_in_use($this->refid->value)) {
119119
throw new ForbiddenError(
120120
message: 'Certificate authority cannot be deleted because it is in use.',
121121
response_id: 'CERTIFICATE_AUTHORITY_CANNOT_BE_DELETED_WHILE_IN_USE',

0 commit comments

Comments
 (0)