* Delete report and all depending objects * * @param int $reportId * @return DataResponse */
(int $reportId)
| 114 | * @return DataResponse |
| 115 | */ |
| 116 | #[NoAdminRequired] |
| 117 | public function delete(int $reportId) |
| 118 | { |
| 119 | if ($this->ReportService->isOwn($reportId)) { |
| 120 | return new DataResponse($this->ReportService->delete($reportId)); |
| 121 | } else { |
| 122 | return new DataResponse(false,400); |
| 123 | } |
| 124 | } |
| 125 | |
| 126 | /** |
| 127 | * get report details |