pull/493/head
Pete Matsyburka 5 months ago
parent 85d52d1f28
commit f464e1c46a

@ -18,11 +18,11 @@ class StartFormController < ApplicationController
.submitters.new(account_id: @template.account_id,
uuid: (filter_undefined_submitters(@template).first ||
@template.submitters.first)['uuid'])
render :show
elsif current_user && current_ability.can?(:read, @template)
render :private
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')
end
end

Loading…
Cancel
Save