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
|
devise_scope :user do
|
||||||
if Docuseal.multitenant?
|
if Docuseal.multitenant?
|
||||||
resource :registration, only: %i[show], path: 'sign_up'
|
unauthenticated do
|
||||||
resource :registration, only: %i[create], path: 'new' do
|
resource :registration, only: %i[show], path: 'sign_up'
|
||||||
get '' => :new, as: :new
|
resource :registration, only: %i[create], path: 'new' do
|
||||||
|
get '' => :new, as: :new
|
||||||
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user