Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 1 addition & 3 deletions app/helpers/application_helper.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
# Provides helper methods for use by views under <tt>ApplicationController</tt> (and by extension, every view).
module ApplicationHelper
include Warden::Test::Helpers

##
# Is the current user a moderator or admin on the current community?
# @return [Boolean]
Expand Down Expand Up @@ -330,7 +328,7 @@ def current_user
@current_user ||= warden.authenticate(scope: :user)
if @current_user&.deleted? || @current_user&.community_user&.deleted?
scope = Devise::Mapping.find_scope!(:user)
logout scope
warden.logout(scope)
@current_user = nil
end
@current_user
Expand Down
Loading