Browse Source

ISLANDORA-171 Add permissoin check for book add pages tab.

pull/105/head
Alexander O'Neill 14 years ago
parent
commit
7dc748b867
  1. 14
      ilives/book.inc

14
ilives/book.inc

@ -179,12 +179,14 @@ class IslandoraBook {
// This will be the content of the tab.
'#content' => fedora_ilives_create_book_view($this->pid),
);
$tabset['add_pages'] = array(
'#type' => 'tabpage',
'#title' => t('Add pages'),
'#content' => drupal_get_form('book_add_pages_form', $this->pid),
);
if (user_access('ingest new fedora objects')) {
$tabset['add_pages'] = array(
'#type' => 'tabpage',
'#title' => t('Add pages'),
'#content' => drupal_get_form('book_add_pages_form', $this->pid),
);
}
return $tabset;
}
}

Loading…
Cancel
Save