Skip to content

Commit

Permalink
Disable maintenance check for API requests
Browse files Browse the repository at this point in the history
This should be part of the core as the payment one is. There are times when administrators need to update orders while in maintenance mode, and can't if the API is blocked by maintenance mode
  • Loading branch information
JAY6390 committed Jan 24, 2015
1 parent 4eb5523 commit 99cc5a7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions upload/catalog/controller/common/maintenance.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ public function index() {

$this->user = new User($this->registry);

if (($route != 'payment') && !$this->user->isLogged()) {
if (($route != 'payment' && $route != 'api') && !$this->user->isLogged()) {
return new Action('common/maintenance/info');
}
}
Expand Down Expand Up @@ -56,4 +56,4 @@ public function info() {
$this->response->setOutput($this->load->view('default/template/common/maintenance.tpl', $data));
}
}
}
}

0 comments on commit 99cc5a7

Please sign in to comment.