mirror of
https://github.com/docusealco/docuseal
synced 2026-11-06 15:02:33 -05:00
adjust nav
This commit is contained in:
1 parent
44972fcc39
commit
073859a4b7
17 files changed
+287
-72
No files matched your search
@@ -10,12 +10,22 @@ class TestingAccountsController < ApplicationController
|
||||
|
||||
impersonate_user(Accounts.find_or_create_testing_user(true_user.account))
|
||||
|
||||
redirect_back(fallback_location: root_path)
|
||||
redirect_after_toggle
|
||||
end
|
||||
|
||||
def destroy
|
||||
stop_impersonating_user
|
||||
|
||||
redirect_back(fallback_location: root_path)
|
||||
redirect_after_toggle
|
||||
end
|
||||
|
||||
private
|
||||
|
||||
def redirect_after_toggle
|
||||
if turbo_native_app?
|
||||
redirect_to root_path
|
||||
else
|
||||
redirect_back(fallback_location: root_path)
|
||||
end
|
||||
end
|
||||
end
|
||||
Reference in new issue
Block a user