diff --git a/app/controllers/dmsf_files_copy_controller.rb b/app/controllers/dmsf_files_copy_controller.rb index 468bc75e..e85adef4 100644 --- a/app/controllers/dmsf_files_copy_controller.rb +++ b/app/controllers/dmsf_files_copy_controller.rb @@ -77,7 +77,7 @@ private end if params[:target_folder_id].present? @target_folder = DmsfFolder.visible.find(params[:target_folder_id]) - unless DmsfFolder.visible.where(params[:target_folder_id]).exists? + unless DmsfFolder.visible.where(:id => params[:target_folder_id]).exists? render_403 return end