mirror of
https://github.com/docusealco/docuseal
synced 2026-11-10 07:42:32 -05:00
add log
This commit is contained in:
1 parent
85d52d1f28
commit
f464e1c46a
1 file changed
+4
-4
@@ -18,11 +18,11 @@ class StartFormController < ApplicationController
|
|||||||
.submitters.new(account_id: @template.account_id,
|
.submitters.new(account_id: @template.account_id,
|
||||||
uuid: (filter_undefined_submitters(@template).first ||
|
uuid: (filter_undefined_submitters(@template).first ||
|
||||||
@template.submitters.first)['uuid'])
|
@template.submitters.first)['uuid'])
|
||||||
|
|
||||||
render :show
|
|
||||||
elsif current_user && current_ability.can?(:read, @template)
|
|
||||||
render :private
|
|
||||||
else
|
else
|
||||||
|
Rollbar.warning("Not shared template: #{@template.id}") if defined?(Rollbar)
|
||||||
|
|
||||||
|
return render :private if current_user && current_ability.can?(:read, @template)
|
||||||
|
|
||||||
raise ActionController::RoutingError, I18n.t('not_found')
|
raise ActionController::RoutingError, I18n.t('not_found')
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in new issue
Block a user