Browse Source

ISLANDORA-1998 Check correct permission for replace ds link. (#681)

* ISLANDORA-1998 Check correct permission for replace ds link.

* Remove redundant theme check.
pull/559/merge
Rosemary Le Faive 8 years ago committed by Diego Pino Navarro
parent
commit
a41c4178ec
  1. 18
      theme/theme.inc

18
theme/theme.inc

@ -64,18 +64,12 @@ function template_preprocess_islandora_default_edit(array &$variables) {
elseif (user_access(ISLANDORA_VIEW_DATASTREAM_HISTORY)) { elseif (user_access(ISLANDORA_VIEW_DATASTREAM_HISTORY)) {
$row[] = array(); $row[] = array();
} }
if (islandora_datastream_access(ISLANDORA_VIEW_DATASTREAM_HISTORY, $ds)) { $row[] = array(
// Add new datastream content as the lastest version. 'class' => 'datastream-replace',
$row[] = array( 'data' => theme('islandora_datastream_replace_link', array(
'class' => 'datastream-replace', 'datastream' => $ds,
'data' => theme('islandora_datastream_replace_link', array( )),
'datastream' => $ds, );
)),
);
}
else {
$row[] = array();
}
$row[] = array( $row[] = array(
'class' => 'datastream-download', 'class' => 'datastream-download',
'data' => theme('islandora_datastream_download_link', array( 'data' => theme('islandora_datastream_download_link', array(

Loading…
Cancel
Save