fix current user being nil on delete account page (#2749)

This commit is contained in:
Mohamad Abras 2021-06-09 05:59:37 +03:00 committed by GitHub
parent be121aefe2
commit 4658de820f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -79,6 +79,7 @@ class UsersController < ApplicationController
# GET /u/:user_uid/delete_account
def delete_account
redirect_to signin_path unless current_user
end
# POST /u/:user_uid/edit