Check registered for session links
All checks were successful
Ruby CI / test (pull_request) Successful in 49s

This commit is contained in:
Andrew Tomaka 2024-08-16 19:53:02 -04:00
parent 6d02dc280b
commit 455a20283e
Signed by: atomaka
GPG key ID: 61209BF70A5B18BE
2 changed files with 2 additions and 2 deletions

View file

@ -8,6 +8,6 @@ module Authenticatable
private
def authenticate_user
Current.user = User.find_by(id: session[:current_user_id])
Current.user = User.find_by(id: session[:current_user_id]) || GuestUser.new
end
end