예제 #1
0
 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());
     }
 }