diff --git a/src/opnsense/mvc/app/controllers/OPNsense/Trust/Api/CertController.php b/src/opnsense/mvc/app/controllers/OPNsense/Trust/Api/CertController.php index 09c95ce0e..3a3c07f52 100644 --- a/src/opnsense/mvc/app/controllers/OPNsense/Trust/Api/CertController.php +++ b/src/opnsense/mvc/app/controllers/OPNsense/Trust/Api/CertController.php @@ -182,7 +182,7 @@ class CertController extends ApiMutableModelControllerBase if ($this->request->isPost() && !empty($uuid)) { $node = $this->getModel()->getNodeByReference('cert.' . $uuid); if ($node !== null) { - $this->checkAndThrowValueInUse((string)$node->refid, false, false); + $this->checkAndThrowValueInUse((string)$node->refid, false, false, ['cert']); } return $this->delBase('cert', $uuid); }