/** * Checks if this request handler has a specific action, * even if the current user cannot access it. * We check for actionNameMETHOD() as well if no action exists * RequestHandler.php -> handleAction() * * @param string $action * @return bool */ public function hasAction($action) { if (!parent::hasAction($action)) { if ($this->hasMethod($action . 'GET') || $this->hasMethod($action . 'POST') || $this->hasMethod($action . 'DELETE') || $this->hasMethod($action . 'PUT') || $this->hasMethod($action . 'PATCH')) { return true; } } return parent::hasAction($action); }