* Delete report and all depending objects * * @param int $panoramaId * @return DataResponse */
(int $panoramaId)
| 105 | * @return DataResponse |
| 106 | */ |
| 107 | #[NoAdminRequired] |
| 108 | public function delete(int $panoramaId) |
| 109 | { |
| 110 | if ($this->PanoramaService->isOwn($panoramaId)) { |
| 111 | return new DataResponse($this->PanoramaService->delete($panoramaId)); |
| 112 | } else { |
| 113 | return new DataResponse(false, 403); |
| 114 | } |
| 115 | } |
| 116 | |
| 117 | /** |
| 118 | * get report details |