mirror of
https://github.com/docusealco/docuseal
synced 2026-11-05 22:52:32 -05:00
redirect on archived template
This commit is contained in:
1 parent
8df76dfa90
commit
0910c8e100
1 file changed
+2
@@ -15,6 +15,8 @@ class StartFormController < ApplicationController
|
||||
end
|
||||
|
||||
def update
|
||||
return redirect_to start_form_path(@template.slug) if @template.archived_at?
|
||||
|
||||
@submitter = Submitter.where(submission: @template.submissions.where(archived_at: nil))
|
||||
.order(id: :desc)
|
||||
.then { |rel| params[:resubmit].present? ? rel.where(completed_at: nil) : rel }
|
||||
|
||||
Reference in new issue
Block a user