fix: iris context.User needs to be embedded in our User struct for type checking to properly work
This commit is contained in:
parent
a23d165caa
commit
1cfc2223a6
|
@ -2,10 +2,12 @@ package account
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"git.lumeweb.com/LumeWeb/portal/model"
|
"git.lumeweb.com/LumeWeb/portal/model"
|
||||||
|
"github.com/kataras/iris/v12/context"
|
||||||
"strconv"
|
"strconv"
|
||||||
)
|
)
|
||||||
|
|
||||||
type User struct {
|
type User struct {
|
||||||
|
context.User
|
||||||
account *model.Account
|
account *model.Account
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue