mirror of
https://github.com/docusealco/docuseal
synced 2026-11-08 15:42:32 -05:00
do not display registration routes for signed up users
This commit is contained in:
1 parent
9d90304d9a
commit
601c984f3f
1 file changed
+5
-3
+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