User management
This commit is contained in:
@@ -51,6 +51,7 @@ module Authentication
|
||||
end
|
||||
|
||||
def current_user
|
||||
return unless Current.session
|
||||
return unless Current.session[:user_id]
|
||||
User.find(Current.session[:user_id])
|
||||
end
|
||||
|
Reference in New Issue
Block a user