From a41c4178ec92b6d46292a8824133e01c4caa4723 Mon Sep 17 00:00:00 2001 From: Rosemary Le Faive Date: Tue, 6 Jun 2017 15:17:51 -0300 Subject: [PATCH] ISLANDORA-1998 Check correct permission for replace ds link. (#681) * ISLANDORA-1998 Check correct permission for replace ds link. * Remove redundant theme check. --- theme/theme.inc | 18 ++++++------------ 1 file changed, 6 insertions(+), 12 deletions(-) diff --git a/theme/theme.inc b/theme/theme.inc index 81c4a33f..d94b1345 100644 --- a/theme/theme.inc +++ b/theme/theme.inc @@ -64,18 +64,12 @@ 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)) { - // Add new datastream content as the lastest version. - $row[] = array( - 'class' => 'datastream-replace', - 'data' => theme('islandora_datastream_replace_link', array( - 'datastream' => $ds, - )), - ); - } - else { - $row[] = array(); - } + $row[] = array( + 'class' => 'datastream-replace', + 'data' => theme('islandora_datastream_replace_link', array( + 'datastream' => $ds, + )), + ); $row[] = array( 'class' => 'datastream-download', 'data' => theme('islandora_datastream_download_link', array(