* get report details * * @param int $panoramaId * @param $name * @param int $type * @param int $parent * @param $pages * @return DataResponse * @throws Exception */
(int $panoramaId, $name, int $type, int $parent, $pages)
| 126 | * @throws Exception |
| 127 | */ |
| 128 | #[NoAdminRequired] |
| 129 | public function update(int $panoramaId, $name, int $type, int $parent, $pages) |
| 130 | { |
| 131 | if (!$this->PanoramaService->isOwn($panoramaId)) { |
| 132 | return new DataResponse(false, 403); |
| 133 | } |
| 134 | $pages = json_encode($pages); |
| 135 | return new DataResponse($this->PanoramaService->update($panoramaId, $name, $type, $parent, $pages)); |
| 136 | } |
| 137 | |
| 138 | /** |
| 139 | * create panorama group |