/** * Check if current page is accessible * * @return boolean */ public function checkAccess() { $list = $this->getPages(); /** * Settings controller is available directly if the $page request variable is provided * if the $page is omitted, the controller must be the subclass of Settings main one. * * The inner $page variable must be in the getPages() array */ return parent::checkAccess() && isset($list[$this->page]) && ($this instanceof \XLite\Controller\Admin\Settings && isset(\XLite\Core\Request::getInstance()->page) || is_subclass_of($this, '\\XLite\\Controller\\Admin\\Settings')); }
/** * Check if current page is accessible * * @return boolean */ public function checkAccess() { return parent::checkAccess() && $this->isAJAX(); }
/** * Check if current page is accessible * * @return boolean */ public function checkAccess() { return parent::checkAccess() && $this->getProductsReturn(); }
/** * Check if current page is accessible * * @return boolean */ public function checkAccess() { return parent::checkAccess() && $this->isOrigProfile(); }
/** * Check if current page is accessible * * @return boolean */ public function checkAccess() { return parent::checkAccess() && ('download' != $this->getAction() || $this->getStorage()); }
/** * Check if current page is accessible * * @return boolean */ public function checkAccess() { $orders = $this->getOrders(); return parent::checkAccess() && $orders && $orders[0] && $orders[0]->getProfile(); }
/** * Check if current page is accessible * * @return boolean */ public function checkAccess() { return parent::checkAccess() && $this->checkRequest() && \XLite\Core\Operator::isClassExists($this->getClass()); }
/** * Check if current page is accessible * * @return boolean */ public function checkAccess() { return parent::checkAccess() && $this->getLogPath(); }
/** * Check if current page is accessible * * @return boolean */ public function checkAccess() { return parent::checkAccess() && $this->getOrder(); }