mirror of
https://github.com/netbirdio/plugins.git
synced 2026-05-22 18:44:07 -07:00
net/haproxy: prevent the deletion of referenced items
This commit is contained in:
+1
@@ -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
|
||||
|
||||
+1
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user