Browse Source

Merge branch 'master' of https://github.com/jesterhazy/islandora into jesterhazy-master

pull/105/head
Alexander O'Neill 14 years ago
parent
commit
eeeeb7145f
  1. 14
      ObjectHelper.inc

14
ObjectHelper.inc

@ -61,20 +61,6 @@ class ObjectHelper {
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