function report_del()
 {
     $user = $this->_controler->getUser();
     $reportId = $this->_controler->_actionParams['sReportId'];
     $groupId = $this->_controler->_actionParams['sGroupId'];
     $reportFactory = new Docman_ReportFactory($groupId);
     $r = $reportFactory->getReportById($reportId);
     if ($r == null) {
         $this->_controler->feedback->log('error', $GLOBALS['Language']->getText('plugin_docman', 'report_del_notfound'));
     } else {
         if ($r->getScope() == 'I' && $r->getUserId() != $user->getId()) {
             $this->_controler->feedback->log('error', $GLOBALS['Language']->getText('plugin_docman', 'report_del_notowner'));
         } else {
             if ($r->getScope() == 'P' && !$this->_controler->userCanAdmin()) {
                 $this->_controler->feedback->log('error', $GLOBALS['Language']->getText('plugin_docman', 'report_del_notadmin'));
             } else {
                 if ($reportFactory->deleteReport($r)) {
                     $this->_controler->feedback->log('info', $GLOBALS['Language']->getText('plugin_docman', 'report_del_success'));
                 } else {
                     $this->_controler->feedback->log('warning', $GLOBALS['Language']->getText('plugin_docman', 'report_del_failure'));
                 }
             }
         }
     }
 }