* get all shares for a report * * @param $item_source * @return DataResponse * @throws Exception */
($item_source)
| 74 | * @throws Exception |
| 75 | */ |
| 76 | #[NoAdminRequired] |
| 77 | public function readReport($item_source) { |
| 78 | if ($this->ReportService->isOwn($item_source)) { |
| 79 | return new DataResponse($this->ShareService->read(ShareService::SHARE_ITEM_TYPE_REPORT, $item_source)); |
| 80 | } else { |
| 81 | return new DataResponse(false); |
| 82 | } |
| 83 | } |
| 84 | |
| 85 | /** |
| 86 | * get all shares for a panorama |