mirror of
https://github.com/netbirdio/plugins.git
synced 2026-05-22 18:44:07 -07:00
net/relayd - regression in controller refactor (https://github.com/opnsense/core/issues/6389).
As StatusController->toggleAction creates an instance of ServiceController, it needs to pass $request in order to check for isPost().
This commit is contained in:
+3
-1
@@ -224,7 +224,9 @@ class StatusController extends ApiControllerBase
|
||||
$relaydMdl->serializeToConfig();
|
||||
Config::getInstance()->save();
|
||||
// invoke service controller
|
||||
return (new ServiceController())->reconfigureAction();
|
||||
$srv = new ServiceController();
|
||||
$srv->request = $this->request;
|
||||
return $srv->reconfigureAction();
|
||||
}
|
||||
}
|
||||
return $result;
|
||||
|
||||
Reference in New Issue
Block a user