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 f8f56f5 + b42817d commit 4deef91Copy full SHA for 4deef91
1 file changed
app/helpers/application_helper.rb
@@ -1,7 +1,5 @@
1
# Provides helper methods for use by views under <tt>ApplicationController</tt> (and by extension, every view).
2
module ApplicationHelper
3
- include Warden::Test::Helpers
4
-
5
##
6
# Is the current user a moderator or admin on the current community?
7
# @return [Boolean]
@@ -330,7 +328,7 @@ def current_user
330
328
@current_user ||= warden.authenticate(scope: :user)
331
329
if @current_user&.deleted? || @current_user&.community_user&.deleted?
332
scope = Devise::Mapping.find_scope!(:user)
333
- logout scope
+ warden.logout(scope)
334
@current_user = nil
335
end
336
@current_user
0 commit comments