Browse Source

Avoid unnecessary access call

pull/577/head
Rosie Le Faive 10 years ago
parent
commit
3900ae5e1d
  1. 6
      islandora.module

6
islandora.module

@ -681,12 +681,12 @@ function islandora_print_object(AbstractObject $object) {
* configuraton.
*/
function islandora_print_object_access($op, $object) {
if (!variable_get('islandora_show_print_option', FALSE)) {
return FALSE;
}
$access = islandora_object_access($op, $object);
if ($access && variable_get('islandora_show_print_option', FALSE)) {
return $access;
}
return FALSE;
}
/**
* Implements hook_forms().

Loading…
Cancel
Save