示例#1
0
 /**
  * @param $data
  * @return bool
  */
 protected function isAllowed($data)
 {
     $this->allowanceValidator->setData($data);
     if ($this->allowanceValidator->isAllowed()) {
         return true;
     }
     return false;
 }
 /**
  * @return mixed
  */
 public function isAllowed()
 {
     $this->isAllowed = true;
     if (!$this->existOuterId()) {
         $this->isAllowed = false;
     }
     return parent::isAllowed();
 }