* 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)
| 232 | * @throws Exception |
| 233 | */ |
| 234 | public function getSharedReport($reportId) { |
| 235 | $sharedReport = $this->getSharedItems(self::SHARE_ITEM_TYPE_REPORT); |
| 236 | if (in_array($reportId, array_column($sharedReport, "id"))) { |
| 237 | $key = array_search($reportId, array_column($sharedReport, 'id')); |
| 238 | return $sharedReport[$key]; |
| 239 | } else { |
| 240 | return []; |
| 241 | } |
| 242 | } |
| 243 | |
| 244 | /** |
| 245 | * get metadata of a report, shared with current user as part of a panorama |