mirror of
https://github.com/docusealco/docuseal
synced 2026-11-11 07: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
+2
@@ -16,11 +16,13 @@ Rails.application.routes.draw do
|
|||||||
|
|
||||||
devise_scope :user do
|
devise_scope :user do
|
||||||
if Docuseal.multitenant?
|
if Docuseal.multitenant?
|
||||||
|
unauthenticated do
|
||||||
resource :registration, only: %i[show], path: 'sign_up'
|
resource :registration, only: %i[show], path: 'sign_up'
|
||||||
resource :registration, only: %i[create], path: 'new' do
|
resource :registration, only: %i[create], path: 'new' do
|
||||||
get '' => :new, as: :new
|
get '' => :new, as: :new
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
end
|
||||||
|
|
||||||
resource :invitation, only: %i[update] do
|
resource :invitation, only: %i[update] do
|
||||||
get '' => :edit
|
get '' => :edit
|
||||||
|
|||||||
Reference in new issue
Block a user