We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fd92027 commit 6374f9dCopy full SHA for 6374f9d
app/code/Magento/Backup/Controller/Adminhtml/Index/Rollback.php
@@ -82,7 +82,9 @@ public function execute()
82
}
83
84
if ($this->getRequest()->getParam('maintenance_mode')) {
85
- if (!$this->maintenanceMode->set(true)) {
+ $this->maintenanceMode->set(true);
86
+
87
+ if (!$this->maintenanceMode->isOn()) {
88
$response->setError(
89
__(
90
'You need more permissions to activate maintenance mode right now.'
0 commit comments