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 2b27bc0 commit fd92027Copy full SHA for fd92027
app/code/Magento/Backup/Controller/Adminhtml/Index/Create.php
@@ -55,7 +55,9 @@ public function execute()
55
$this->_coreRegistry->register('backup_manager', $backupManager);
56
57
if ($this->getRequest()->getParam('maintenance_mode')) {
58
- if (!$this->maintenanceMode->set(true)) {
+ $this->maintenanceMode->set(true);
59
+
60
+ if (!$this->maintenanceMode->isOn()) {
61
$response->setError(
62
__(
63
'You need more permissions to activate maintenance mode right now.'
0 commit comments