diff --git a/app/services/hyrax/edit_permissions_service.rb b/app/services/hyrax/edit_permissions_service.rb index 53251555b7..97f219824c 100644 --- a/app/services/hyrax/edit_permissions_service.rb +++ b/app/services/hyrax/edit_permissions_service.rb @@ -32,7 +32,7 @@ class EditPermissionsService # * form_object.object.model = FileSet # * use work the file_set is in # No other object types are supported by this view. - def self.build_service_object_from(form:, ability:) + def self.build_service_object_from(form:, ability:) # rubocop:disable Metrics/AbcSize if form.object.respond_to?(:model) && form.object.model.work? # The provided form object is a work form. new(object: form.object, ability: ability) @@ -51,7 +51,7 @@ def self.build_service_object_from(form:, ability:) # The provided form object is a FileSet. new(object: form.object.in_works.first, ability: ability) end - end + end # rubocop:enable Metrics/AbcSize attr_reader :depositor, :unauthorized_collection_managers