From 9380846204f5fa7bab52129f074e1cc37384cb92 Mon Sep 17 00:00:00 2001 From: Ad Schellevis Date: Thu, 7 Mar 2024 14:21:45 +0100 Subject: [PATCH] System: Trust: Certificates - work in progress for https://github.com/opnsense/core/issues/7248 * fix dependency check --- .../mvc/app/controllers/OPNsense/Trust/Api/CertController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); }