Skip to content

Commit

Permalink
fix current user being nil on delete account page (#2749)
Browse files Browse the repository at this point in the history
  • Loading branch information
mabras authored Jun 9, 2021
1 parent be121ae commit 4658de8
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions app/controllers/users_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@ def change_password

# GET /u/:user_uid/delete_account
def delete_account
redirect_to signin_path unless current_user
end

# POST /u/:user_uid/edit
Expand Down

0 comments on commit 4658de8

Please sign in to comment.