* Delete report and all depending objects * * @param int $panoramaId * @return DataResponse */
(int $panoramaId)
| 81 | * @return DataResponse |
| 82 | */ |
| 83 | #[NoAdminRequired] |
| 84 | public function delete(int $panoramaId) |
| 85 | { |
| 86 | if ($this->PanoramaService->isOwn($panoramaId)) { |
| 87 | return new DataResponse($this->PanoramaService->delete($panoramaId)); |
| 88 | } else { |
| 89 | return new DataResponse(false, 403); |
| 90 | } |
| 91 | } |
| 92 | |
| 93 | /** |
| 94 | * get report details |