Skip to content

Commit 6374f9d

Browse files
committed
Resolve Rollback issue
1 parent fd92027 commit 6374f9d

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/Rollback.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,9 @@ public function execute()
8282
}
8383

8484
if ($this->getRequest()->getParam('maintenance_mode')) {
85-
if (!$this->maintenanceMode->set(true)) {
85+
$this->maintenanceMode->set(true);
86+
87+
if (!$this->maintenanceMode->isOn()) {
8688
$response->setError(
8789
__(
8890
'You need more permissions to activate maintenance mode right now.'

0 commit comments

Comments
 (0)