diff --git a/app/services/hyrax/edit_permissions_service.rb b/app/services/hyrax/edit_permissions_service.rb index be254a7083..53251555b7 100644 --- a/app/services/hyrax/edit_permissions_service.rb +++ b/app/services/hyrax/edit_permissions_service.rb @@ -41,7 +41,7 @@ def self.build_service_object_from(form:, ability:) # (+Hyrax::Forms::FileSetForm+), +:in_works_ids+ is prepopulated onto # the form object itself. For +Hyrax::Forms::FileSetEditForm+, the # +:in_works+ method is present on the wrapped +:model+. - if form.object.is_a?(Hyrax::Forms::FileSetForm) + if form.object.is_a?(Hyrax.config.file_set_form) object_id = form.object.in_works_ids.first new(object: Hyrax.query_service.find_by(id: object_id), ability: ability) else