Skip to content
Snippets Groups Projects
Commit 1deb6475 authored by Kapil Patel's avatar Kapil Patel
Browse files

revert some code

parent 8dd95c43
No related tags found
1 merge request!202Disable enter key to restrict triggering of wrong buttons.
Pipeline #9220 failed
......@@ -15,7 +15,6 @@ module Hyrax
before_action :authorize_collection_access, only: :new
before_action :check_tombstone, only: [:show, :edit]
before_action :redirect_to_default_collection, only:[:new]
def authorize_collection_access
group_id = params[:add_works_to_collection]
......@@ -95,12 +94,5 @@ module Hyrax
curation_concern.complex_subject << new_complex_subject_record
end
end
def redirect_to_default_collection
return if params.has_key?(:add_works_to_collection)
collection = Collection.where(title: ENV.fetch('CRC_1280_COLLECTION', "CRC 1280")).first
redirect_to dashboard_collection_path(collection.id)
end
end
end
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment