request->get['route'])) { $route = (string)$this->request->get['route']; } else { $route = ''; } if (substr($route, 0, 4) == 'api/' && $route !== 'api/account/login' && !isset($this->session->data['api_id'])) { return new \Opencart\System\Engine\Action('error/permission'); } return null; } }