Browse Source

ISLANDORA-761 added in changes to improve how fedora item sets ownerId

pull/177/head
William Panting 12 years ago
parent
commit
040395fe64
  1. 8
      api/fedora_item.inc

8
api/fedora_item.inc

@ -1468,7 +1468,7 @@ RDF;
* @param type $label
* @param string $owner
* Used to set an object's ownerId attribute. Defaults to current user's
* name.
* name. If we are not a Drupal user(ie. Drush) defaults to ''.
*
* @return DOMDocument
*/
@ -1485,9 +1485,9 @@ RDF;
if (!empty($user->name)) {
$owner = $user->name;
}
// We are not inside Drupal.
else {
$owner = 'fedoraAdmin';
// We are annonamous user.
elseif ($user->uid == 0) {
$owner = 'anonymous';
}
}

Loading…
Cancel
Save