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