Don't attempt to save submissions if the user can't access the wizard
Dieser Commit ist enthalten in:
Ursprung
58b3bc13c9
Commit
9452907f0a
1 geänderte Dateien mit 1 neuen und 1 gelöschten Zeilen
|
@ -61,7 +61,7 @@ class CustomWizard::WizardController < ::ApplicationController
|
||||||
result = success_json
|
result = success_json
|
||||||
user = current_user
|
user = current_user
|
||||||
|
|
||||||
if user
|
if user && wizard.can_access?
|
||||||
submission = wizard.current_submission
|
submission = wizard.current_submission
|
||||||
if submission && submission['redirect_to']
|
if submission && submission['redirect_to']
|
||||||
result.merge!(redirect_to: submission['redirect_to'])
|
result.merge!(redirect_to: submission['redirect_to'])
|
||||||
|
|
Laden …
In neuem Issue referenzieren