private function hasDownloadAction($ref_id)
 {
     global $tree, $ilUser;
     $settings = ilObjFolderAccess::getFolderSettings();
     // default value should reflect previous behaviour (-> 0)
     if ($settings->get("enable_download_folder", 0) != 1) {
         return false;
     }
     /*
      * deactivated check for now, because wrong ref_id here!
      
     $children = $tree->getChildsByTypeFilter($ref_id, array("file","fold"));
     
     // no children at all, so no download button
     if (count ($children) == 0)
         return false;
     // check if at least one of the children has a read permission
     foreach ($children as $child)
     		{
     			if ($rbacsystem->checkAccessOfUser($ilUser->getId(), "read", $child["ref_id"]))
     				return true;
     		}
     		return false;
     */
     return true;
 }
 /**
  * initialisation
  */
 function init()
 {
     $this->static_link_enabled = true;
     $this->delete_enabled = true;
     $this->cut_enabled = true;
     $this->copy_enabled = true;
     $this->subscribe_enabled = true;
     $this->link_enabled = false;
     $this->payment_enabled = false;
     $this->info_screen_enabled = true;
     $this->type = "fold";
     $this->gui_class_name = "ilobjfoldergui";
     // general commands array
     include_once './Modules/Folder/classes/class.ilObjFolderAccess.php';
     $this->commands = ilObjFolderAccess::_getCommands();
 }