From ce38c47d2cd0a847afec7ba4d29b700eaa26592a Mon Sep 17 00:00:00 2001 From: Rosie Le Faive Date: Mon, 5 Jun 2017 10:43:48 -0300 Subject: [PATCH] ISLANDORA-1998 Check correct permission for replace ds link. --- theme/theme.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/theme/theme.inc b/theme/theme.inc index 81c4a33f..a3569c35 100644 --- a/theme/theme.inc +++ b/theme/theme.inc @@ -64,7 +64,7 @@ function template_preprocess_islandora_default_edit(array &$variables) { elseif (user_access(ISLANDORA_VIEW_DATASTREAM_HISTORY)) { $row[] = array(); } - if (islandora_datastream_access(ISLANDORA_VIEW_DATASTREAM_HISTORY, $ds)) { + if (islandora_datastream_access(ISLANDORA_REPLACE_DATASTREAM_CONTENT, $ds)) { // Add new datastream content as the lastest version. $row[] = array( 'class' => 'datastream-replace',