Skip to content

Commit

Permalink
Merge pull request #14 from willtp87/8.x.ISLANDORA-2418
Browse files Browse the repository at this point in the history
  • Loading branch information
JojoVes committed May 13, 2019
2 parents 73745e8 + b712266 commit a00534a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions islandora_compound_object.module
Original file line number Diff line number Diff line change
Expand Up @@ -574,7 +574,7 @@ function islandora_compound_object_retrieve_compound_info(AbstractObject $object
$next_pid = (isset($siblings[$current_key + 1])) ? $siblings[$current_key + 1] : '';

// Check if perms to show link for parent manage.
if (islandora_object_manage_access_callback([
if ($parent && islandora_object_manage_access_callback([
ISLANDORA_METADATA_EDIT,
ISLANDORA_MANAGE_PROPERTIES,
ISLANDORA_ADD_DS,
Expand All @@ -586,7 +586,7 @@ function islandora_compound_object_retrieve_compound_info(AbstractObject $object
}

$info = [
'parent_label' => $parent->label,
'parent_label' => ($parent && $parent->label) ? $parent->label : NULL,
'parent_pid' => $parent_pid,
'parent_url' => $parent_url,
'previous_pid' => $previous_pid,
Expand Down

0 comments on commit a00534a

Please sign in to comment.