0
0
Fork 1
Spiegel von https://github.com/paviliondev/discourse-custom-wizard.git synchronisiert 2024-11-25 10:40:28 +01:00

Filter redirect_to from submissions

Dieser Commit ist enthalten in:
Angus McLeod 2018-05-24 22:54:36 +10:00
Ursprung 54a889d8e0
Commit bf15927c8e

Datei anzeigen

@ -145,7 +145,7 @@ class CustomWizard::AdminController < ::ApplicationController
all_submissions = [*rows].map do |r| all_submissions = [*rows].map do |r|
submissions = ::JSON.parse(r.value) submissions = ::JSON.parse(r.value)
username = User.find(r.key).username username = User.find(r.key).username
submissions.map { |s| { username: username }.merge!(s) } submissions.map { |s| { username: username }.merge!(s.except("redirect_to")) }
end.flatten end.flatten
render json: success_json.merge(submissions: all_submissions) render json: success_json.merge(submissions: all_submissions)