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. // This will be the content of the tab.
'#content' => fedora_ilives_create_book_view($this->pid), '#content' => fedora_ilives_create_book_view($this->pid),
); );
$tabset['add_pages'] = array( if (user_access('ingest new fedora objects')) {
'#type' => 'tabpage', $tabset['add_pages'] = array(
'#title' => t('Add pages'), '#type' => 'tabpage',
'#content' => drupal_get_form('book_add_pages_form', $this->pid), '#title' => t('Add pages'),
); '#content' => drupal_get_form('book_add_pages_form', $this->pid),
);
}
return $tabset; return $tabset;
} }
} }

Loading…
Cancel
Save