Browse Source

Merge pull request #692 from adam-vessey/7.x-1.10-ISLANDORA-2064

ISLANDORA-2064: Object context for permission check.
7.x-1.10
Mark Jordan 7 years ago committed by GitHub
parent
commit
68cb674e42
  1. 4
      theme/theme.inc

4
theme/theme.inc

@ -21,7 +21,7 @@ function template_preprocess_islandora_default_edit(array &$variables) {
$header[] = array('data' => t('Type')); $header[] = array('data' => t('Type'));
$header[] = array('data' => t('Mime type')); $header[] = array('data' => t('Mime type'));
$header[] = array('data' => t('Size')); $header[] = array('data' => t('Size'));
if (user_access(ISLANDORA_VIEW_DATASTREAM_HISTORY)) { if (islandora_object_access(ISLANDORA_VIEW_DATASTREAM_HISTORY, $islandora_object)) {
$header[] = array('data' => t('Versions')); $header[] = array('data' => t('Versions'));
} }
@ -61,7 +61,7 @@ function template_preprocess_islandora_default_edit(array &$variables) {
)), )),
); );
} }
elseif (user_access(ISLANDORA_VIEW_DATASTREAM_HISTORY)) { elseif (islandora_object_access(ISLANDORA_VIEW_DATASTREAM_HISTORY, $islandora_object)) {
$row[] = array(); $row[] = array();
} }
$row[] = array( $row[] = array(

Loading…
Cancel
Save