Skip to content

Commit fd92027

Browse files
committed
Resolve issue of Backup tool not correctly detecting .maintenance.flag
1 parent 2b27bc0 commit fd92027

File tree

1 file changed

+3
-1
lines changed
  • app/code/Magento/Backup/Controller/Adminhtml/Index

1 file changed

+3
-1
lines changed

app/code/Magento/Backup/Controller/Adminhtml/Index/Create.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,9 @@ public function execute()
5555
$this->_coreRegistry->register('backup_manager', $backupManager);
5656

5757
if ($this->getRequest()->getParam('maintenance_mode')) {
58-
if (!$this->maintenanceMode->set(true)) {
58+
$this->maintenanceMode->set(true);
59+
60+
if (!$this->maintenanceMode->isOn()) {
5961
$response->setError(
6062
__(
6163
'You need more permissions to activate maintenance mode right now.'

0 commit comments

Comments
 (0)