From 50b69e78304901024928a1a7276bb644120e9bd5 Mon Sep 17 00:00:00 2001 From: Davide bonomini Date: Tue, 5 Dec 2023 10:29:10 +0100 Subject: [PATCH] User() now returns a userinterface instead of a pointer to userinterface --- evo.user.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/evo.user.go b/evo.user.go index 4d487504..9635c0e9 100644 --- a/evo.user.go +++ b/evo.user.go @@ -2,12 +2,12 @@ package evo import "github.com/getevo/evo/v2/lib/generic" -func (r *Request) User() *UserInterface { +func (r *Request) User() UserInterface { if r.user == nil { var user = (UserInterfaceInstance).FromRequest(r) r.user = &user } - return r.user + return *r.user } type DefaultUserInterface struct{}