* get metadata of a panorama, shared with current user * used to check if user is allowed to access current panorama * * @param $panoramaId * @return array * @throws Exception */
($panoramaId)
| 250 | * @throws Exception |
| 251 | */ |
| 252 | public function getSharedPanorama($panoramaId) { |
| 253 | $sharedPanoramas = $this->getSharedItems(self::SHARE_ITEM_TYPE_PANORAMA); |
| 254 | if (in_array($panoramaId, array_column($sharedPanoramas, "id"))) { |
| 255 | $key = array_search($panoramaId, array_column($sharedPanoramas, 'id')); |
| 256 | return $sharedPanoramas[$key]; |
| 257 | } else { |
| 258 | return []; |
| 259 | } |
| 260 | } |
| 261 | |
| 262 | /** |
| 263 | * get metadata of a report, shared with current user as part of a panorama |