Пример #1
0
 /**
  * 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'));
 }
Пример #2
0
 /**
  * Check if current page is accessible
  *
  * @return boolean
  */
 public function checkAccess()
 {
     return parent::checkAccess() && $this->isAJAX();
 }
Пример #3
0
 /**
  * Check if current page is accessible
  *
  * @return boolean
  */
 public function checkAccess()
 {
     return parent::checkAccess() && $this->getProductsReturn();
 }
Пример #4
0
 /**
  * Check if current page is accessible
  *
  * @return boolean
  */
 public function checkAccess()
 {
     return parent::checkAccess() && $this->isOrigProfile();
 }
Пример #5
0
 /**
  * Check if current page is accessible
  *
  * @return boolean
  */
 public function checkAccess()
 {
     return parent::checkAccess() && ('download' != $this->getAction() || $this->getStorage());
 }
Пример #6
0
 /**
  * Check if current page is accessible
  *
  * @return boolean
  */
 public function checkAccess()
 {
     $orders = $this->getOrders();
     return parent::checkAccess() && $orders && $orders[0] && $orders[0]->getProfile();
 }
Пример #7
0
 /**
  * Check if current page is accessible
  *
  * @return boolean
  */
 public function checkAccess()
 {
     return parent::checkAccess() && $this->checkRequest() && \XLite\Core\Operator::isClassExists($this->getClass());
 }
Пример #8
0
 /**
  * Check if current page is accessible
  *
  * @return boolean
  */
 public function checkAccess()
 {
     return parent::checkAccess() && $this->getLogPath();
 }
Пример #9
0
 /**
  * Check if current page is accessible
  *
  * @return boolean
  */
 public function checkAccess()
 {
     return parent::checkAccess() && $this->getOrder();
 }