Skip to content

Commit

Permalink
Fixed render logic (again, after previous commit, this time for reals…
Browse files Browse the repository at this point in the history
…) for deacessioned datasets/files of Download/Request Access button block on File pg. [ref #2465]
  • Loading branch information
mheppler committed Nov 17, 2016
1 parent 63f10b5 commit 2803717
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/main/webapp/file.xhtml
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,8 @@
<!-- END: Edit Button Group -->

<!-- Explore/Map Data/Download/Request Button Block -->
<div class="button-container pull-right" jsf:rendered="#{!FilePage.fileMetadata.datasetVersion.deaccessioned}">
<div class="button-container pull-right" jsf:rendered="#{(!FilePage.fileMetadata.datasetVersion.deaccessioned or
(FilePage.fileMetadata.datasetVersion.deaccessioned and FilePage.canUpdateDataset()))}">
<ui:include src="file-download-button-fragment.xhtml">
<ui:param name="fileMetadata" value="#{FilePage.fileMetadata}"/>
<ui:param name="canUpdateDataset" value="#{FilePage.canUpdateDataset()}"/>
Expand Down

0 comments on commit 2803717

Please sign in to comment.