* get metadata of a report, shared with current user * used to check if user is allowed to execute current report * * @param $reportId * @return array * @throws Exception */
($reportId)
| 236 | * @throws Exception |
| 237 | */ |
| 238 | public function getSharedReport($reportId) { |
| 239 | $sharedReport = $this->getSharedItems(self::SHARE_ITEM_TYPE_REPORT); |
| 240 | if (in_array($reportId, array_column($sharedReport, "id"))) { |
| 241 | $key = array_search($reportId, array_column($sharedReport, 'id')); |
| 242 | return $sharedReport[$key]; |
| 243 | } else { |
| 244 | return []; |
| 245 | } |
| 246 | } |
| 247 | |
| 248 | /** |
| 249 | * get metadata of a panorama, shared with current user |