do not display registration routes for signed up users
This commit is contained in:
+5
-3
@@ -16,9 +16,11 @@ Rails.application.routes.draw do
|
||||
|
||||
devise_scope :user do
|
||||
if Docuseal.multitenant?
|
||||
resource :registration, only: %i[show], path: 'sign_up'
|
||||
resource :registration, only: %i[create], path: 'new' do
|
||||
get '' => :new, as: :new
|
||||
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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user