Browse Source

Updated to allow access to any datastream to administrators.

pull/2/head
mroy 14 years ago
parent
commit
4463124712
  1. 5
      ObjectHelper.inc

5
ObjectHelper.inc

@ -67,8 +67,9 @@ class ObjectHelper {
} }
$cmDatastreams = $cm->listDatastreams(); $cmDatastreams = $cm->listDatastreams();
if (!in_array($dsID,$cmDatastreams)) {
drupal_set_message(t("You do not have access to the specified datastream."), 'error'); 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(); drupal_access_denied();
return ' '; return ' ';
} }

Loading…
Cancel
Save