net/haproxy: prevent the deletion of referenced items

This commit is contained in:
Frank Wall
2021-03-02 16:33:07 +01:00
parent 0f7cec57e4
commit db054b6f48
3 changed files with 3 additions and 0 deletions
+1
View File
@@ -27,6 +27,7 @@ Added:
Fixed:
* prevent service outage by aborting "Apply" when configtest fails
* fix direct links to individual statistics tabs
* prevent the deletion of items that are still referenced elsewhere (core/#1897)
Changed:
* change default SSL version to TLSv1.2 (ssl-min-ver)
@@ -45,6 +45,7 @@ class ServiceController extends ApiMutableServiceControllerBase
protected static $internalServiceTemplate = 'OPNsense/HAProxy';
protected static $internalServiceEnabled = 'general.enabled';
protected static $internalServiceName = 'haproxy';
protected static $internalModelUseSafeDelete = true;
/**
* run syntax check for haproxy configuration
@@ -44,6 +44,7 @@ class SettingsController extends ApiMutableModelControllerBase
{
protected static $internalModelName = 'haproxy';
protected static $internalModelClass = '\OPNsense\HAProxy\HAProxy';
protected static $internalModelUseSafeDelete = true;
public function getFrontendAction($uuid = null)
{