We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents da12f38 + 9aee2fd commit 27fdd4aCopy full SHA for 27fdd4a
1 file changed
app/controllers/application_controller.rb
@@ -50,4 +50,10 @@ def set_locale
50
def constrained_locale
51
return params[:locale] if params[:locale].in? Object.new.extend(HyraxHelper).available_translations
52
end
53
+
54
+ # Devise uses this method to tell where to send the user to after signing in.
55
+ # Conditionally set to either the dashboard or root_path based on site_usage.
56
+ def user_root_path
57
+ helpers.access_only? ? root_path : hyrax.dashboard_path
58
+ end
59
0 commit comments