forked from External/greenlight
fix current user being nil on delete account page (#2749)
This commit is contained in:
parent
be121aefe2
commit
4658de820f
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue