Skip to content

Commit

Permalink
verify current_user too
Browse files Browse the repository at this point in the history
  • Loading branch information
devton committed Feb 7, 2012
1 parent d3eaa4a commit 7f8e9dc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/controllers/sessions_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ def create
end

def destroy
return redirect_to destroy_user_session_path if current_user.provider == 'devise'
return redirect_to destroy_user_session_path if current_user and current_user.provider == 'devise'
session[:user_id] = nil
cookies.delete :remember_me_id if cookies[:remember_me_id]
cookies.delete :remember_me_hash if cookies[:remember_me_hash]
Expand Down

0 comments on commit 7f8e9dc

Please sign in to comment.