System: Trust: Certificates - work in progress for https://github.com/opnsense/core/issues/7248

* fix dependency check
This commit is contained in:
Ad Schellevis 2024-03-07 14:21:45 +01:00
parent 38cb5cda12
commit 9380846204

View File

@ -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);
}