mirror of
https://github.com/netbirdio/plugins.git
synced 2026-05-22 18:44:07 -07:00
net/relayd: Remove sessionClose()
This commit is contained in:
committed by
Franco Fichtner
parent
be90096c40
commit
ff349682f8
@@ -71,7 +71,6 @@ class ServiceController extends ApiMutableServiceControllerBase
|
||||
{
|
||||
if ($this->request->isPost()) {
|
||||
$result['status'] = 'ok';
|
||||
$this->sessionClose();
|
||||
|
||||
$backend = new Backend();
|
||||
|
||||
@@ -96,7 +95,6 @@ class ServiceController extends ApiMutableServiceControllerBase
|
||||
{
|
||||
if ($this->request->isPost()) {
|
||||
if ($this->lock()) {
|
||||
$this->sessionClose();
|
||||
$result['function'] = "reconfigure";
|
||||
$result['status'] = 'failed';
|
||||
$backend = new Backend();
|
||||
|
||||
@@ -240,7 +240,6 @@ class SettingsController extends ApiMutableModelControllerBase
|
||||
*/
|
||||
public function searchAction($nodeType = null)
|
||||
{
|
||||
$this->sessionClose();
|
||||
if ($this->request->isPost() && $nodeType != null) {
|
||||
$this->validateNodeType($nodeType);
|
||||
$grid = new UIModelGrid($this->getModel()->$nodeType);
|
||||
|
||||
@@ -202,7 +202,6 @@ class StatusController extends ApiControllerBase
|
||||
{
|
||||
$result = ["result" => "failed", "function" => "toggle"];
|
||||
if ($this->request->isPost()) {
|
||||
$this->sessionClose();
|
||||
$backend = new Backend();
|
||||
if (in_array($nodeType, ['redirect', 'table', 'host']) && in_array($action, ['enable', 'disable'])) {
|
||||
if ($id != null && $id > 0) {
|
||||
|
||||
Reference in New Issue
Block a user