Skip to content

Commit

Permalink
#133 Hide capture tool in viewer when download is hidden in public sh…
Browse files Browse the repository at this point in the history
…are link (#134)
  • Loading branch information
ayselafsar authored Oct 22, 2024
1 parent 5c81794 commit abeedf6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions lib/Controller/DisplayController.php
Original file line number Diff line number Diff line change
Expand Up @@ -570,6 +570,9 @@ public function getPublicDICOMJson(): JSONResponse {
$downloadUrlPrefix = $this->getNextcloudBasePath().'/s/'.$shareToken.'/download';
$dicomJson = $this->generateDICOMJson($dicomFilePaths, $dicomFileNodes, $selectedFileFullPath, $dicomParentFullPath, null, $downloadUrlPrefix, true, $singlePublicFileDownload);

// Hide capture tool in viewer when download is hidden in public share link
$dicomJson['hideCapture'] = $share->getHideDownload();

$dicomJson = $this->convertToUTF8($dicomJson);
$response = new JSONResponse($dicomJson);
return $response;
Expand Down

0 comments on commit abeedf6

Please sign in to comment.