Skip to content

Commit

Permalink
Use updated method to avoid deprecation error
Browse files Browse the repository at this point in the history
  • Loading branch information
jcoyne committed Apr 26, 2019
1 parent bfb66c4 commit 826700a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/services/registration_service.rb
Expand Up @@ -103,7 +103,7 @@ def register_object(params = {})
if rights && %w(item collection).include?(object_type)
rights_xml = apo_object.defaultObjectRights.ng_xml
new_item.datastreams['rightsMetadata'].content = rights_xml.to_s
new_item.set_read_rights(rights) unless rights == 'default' # already defaulted to default!
new_item.read_rights = rights unless rights == 'default' # already defaulted to default!
end
# create basic mods from the label
build_desc_metadata_from_label(new_item, label) if metadata_source == 'label'
Expand Down

0 comments on commit 826700a

Please sign in to comment.