/** * @see parent::getPerm() */ function getPerm($permType) { if (!$this->_ref_stock || !$this->_ref_service) { $this->loadRefsFwd(); } if ($this->_ref_service) { return $this->_ref_stock->getPerm($permType) && $this->_ref_service->getPerm($permType); } return $this->_ref_stock->getPerm($permType); }