* 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)
| 102 | * @throws Exception |
| 103 | */ |
| 104 | #[NoAdminRequired] |
| 105 | public function update(int $panoramaId, $name, int $type, int $parent, $pages) |
| 106 | { |
| 107 | if (!$this->PanoramaService->isOwn($panoramaId)) { |
| 108 | return new DataResponse(false, 403); |
| 109 | } |
| 110 | $pages = json_encode($pages); |
| 111 | return new DataResponse($this->PanoramaService->update($panoramaId, $name, $type, $parent, $pages)); |
| 112 | } |
| 113 | |
| 114 | /** |
| 115 | * create panorama group |