Exemplo n.º 1
0
 protected function processBeforeAction($actionName)
 {
     parent::processBeforeAction($actionName);
     $this->findFile();
     $securityContext = $this->storage->getCurrentUserSecurityContext();
     if (!$this->file->canRead($securityContext)) {
         $this->showAccessDenied();
         return false;
     }
     return true;
 }
Exemplo n.º 2
0
 protected function processBeforeAction($actionName)
 {
     parent::processBeforeAction($actionName);
     $this->findFolder();
     return true;
 }