Skip to content
Snippets Groups Projects
Commit 91760d28 authored by farhatahmad's avatar farhatahmad Committed by Jesus Federico
Browse files

Added check to make sure user is signed in (#499)

parent 9f74b0e2
No related branches found
No related tags found
No related merge requests found
......@@ -31,7 +31,7 @@ module ThemingHelper
# Returns the user's provider in the settings context
def user_settings_provider
if Rails.configuration.loadbalanced_configuration && !current_user&.has_role?(:super_admin)
if Rails.configuration.loadbalanced_configuration && current_user && !current_user&.has_role?(:super_admin)
current_user.provider
elsif Rails.configuration.loadbalanced_configuration
@user_domain
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment