Skip to content

Commit

Permalink
don't try to load the company if there's no current_user
Browse files Browse the repository at this point in the history
  • Loading branch information
fermion committed Jan 5, 2024
1 parent de772af commit ab80153
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/controllers/application_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ def current_user
helper_method :current_user

def current_company
@current_company ||= current_user.current_company
@current_company ||= current_user&.current_company
end
helper_method :current_company

Expand Down

0 comments on commit ab80153

Please sign in to comment.