protected function secureFile(fs\file $file) { //dspf($file); if ($this->getControler()->mustSecure()) { if (!$this->getSettings() or !($aRights = $this->getSettings()->getFile($file->getName()))) { $aRights = $this->getChildrenRights(); } $file->setRights($aRights); } else { $file->setRights($this->getChildrenRights()); } }