mirror of
https://github.com/docusealco/docuseal
synced 2026-11-06 23:12:33 -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
|
||||
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