Browse Source

Merge remote branch 'upstream/master'

pull/105/head
Zachary Howarth 14 years ago
parent
commit
4fff63f991
  1. 14
      ObjectHelper.inc

14
ObjectHelper.inc

@ -60,20 +60,6 @@ class ObjectHelper {
drupal_access_denied();
return ' ';
}
if (($cm = ContentModel::loadFromObject($pid)) == FALSE) {
drupal_set_message(t("You do not have access to objects without an Islandora Content Model."), 'error');
drupal_access_denied();
return ' ';
}
$cmDatastreams = $cm->listDatastreams();
if ( !((isset($user) && in_array('administrator',$user->roles)) || in_array($dsID,$cmDatastreams))) {
drupal_set_message(t("You do not have access to the specified datastream."), 'error');
drupal_access_denied();
return ' ';
}
module_load_include('inc', 'fedora_repository', 'api/fedora_item');
$item = new Fedora_Item($pid);

Loading…
Cancel
Save