do not display registration routes for signed up users

pull/105/head
Alex Turchyn 2 years ago
parent 9d90304d9a
commit 601c984f3f

@ -16,11 +16,13 @@ Rails.application.routes.draw do
devise_scope :user do
if Docuseal.multitenant?
unauthenticated do
resource :registration, only: %i[show], path: 'sign_up'
resource :registration, only: %i[create], path: 'new' do
get '' => :new, as: :new
end
end
end
resource :invitation, only: %i[update] do
get '' => :edit

Loading…
Cancel
Save