Browse Source

ISLANDORA-194 Add permission check to purge object form.

pull/105/head
Alexander O'Neill 14 years ago
parent
commit
ac7f71d045
  1. 7
      fedora_repository.module

7
fedora_repository.module

@ -236,7 +236,12 @@ function fedora_repository_ingest_form(&$form_state, $collection_pid, $collectio
function fedora_repository_purge_object_form(&$form_state, $pid, $referrer = NULL) {
global $base_url;
// $form['#redirect'] = "fedora/repository/$collectionPid/";
if (!user_access('purge objects and datastreams')) {
return NULL;
}
if ($pid == NULL) {
return NULL;
}
$form['pid'] = array(
'#type' => 'hidden',
'#value' => "$pid"

Loading…
Cancel
Save