diff --git a/app/modules/web/Controllers/ConfigBackupController.php b/app/modules/web/Controllers/ConfigBackupController.php index 4023ca07..678255d0 100644 --- a/app/modules/web/Controllers/ConfigBackupController.php +++ b/app/modules/web/Controllers/ConfigBackupController.php @@ -191,6 +191,10 @@ final class ConfigBackupController extends SimpleControllerBase { $this->checkSecurityToken($this->previousSk, $this->request); + if ($this->configData->isDemoEnabled()) { + return __('Ey, esto es una DEMO!!'); + } + try { SessionContext::close(); @@ -233,6 +237,10 @@ final class ConfigBackupController extends SimpleControllerBase { $this->checkSecurityToken($this->previousSk, $this->request); + if ($this->configData->isDemoEnabled()) { + return __('Ey, esto es una DEMO!!'); + } + try { SessionContext::close(); diff --git a/app/modules/web/Controllers/ConfigGeneralController.php b/app/modules/web/Controllers/ConfigGeneralController.php index b4919763..f473cffc 100644 --- a/app/modules/web/Controllers/ConfigGeneralController.php +++ b/app/modules/web/Controllers/ConfigGeneralController.php @@ -179,6 +179,10 @@ final class ConfigGeneralController extends SimpleControllerBase { $this->checkSecurityToken($this->previousSk, $this->request); + if ($this->configData->isDemoEnabled()) { + return __('Ey, esto es una DEMO!!'); + } + try { SessionContext::close(); @@ -221,6 +225,10 @@ final class ConfigGeneralController extends SimpleControllerBase { $this->checkSecurityToken($this->previousSk, $this->request); + if ($this->configData->isDemoEnabled()) { + return __('Ey, esto es una DEMO!!'); + } + try { $this->eventDispatcher->notifyEvent('download.configBackupFile', new Event($this, EventMessage::factory()