Browse Source

Updated to allow access to any datastream to administrators.

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

3
ObjectHelper.inc

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

Loading…
Cancel
Save