Separate root routes for un- and authenticated users

Closes #34
Closes #47
This commit is contained in:
2025-01-02 03:14:26 +01:00
parent 8b1a186467
commit b8bcbee1e9
2 changed files with 5 additions and 14 deletions

View File

@@ -31,18 +31,6 @@ class ApplicationController < ActionController::Base
session[:revert_to_id].present?
end
def after_sign_in_path_for(scope)
if current_user.at_least(:admin)
users_path
else
edit_user_registration_path
end
end
def after_sign_out_path_for(scope)
new_user_session_path
end
class << self
attr_reader :navigation_menu_tab
def navigation_tab(name)