mirror of
https://github.com/pushbits/server.git
synced 2025-06-14 00:22:15 +02:00
Update to Go 1.23 (#73)
This commit is contained in:
parent
35f957332b
commit
15ea2935be
14 changed files with 139 additions and 162 deletions
|
@ -61,7 +61,7 @@ func (a *Authenticator) requireUserProperty(has hasUserProperty) gin.HandlerFunc
|
|||
|
||||
// RequireUser returns a Gin middleware which requires valid user credentials to be supplied with the request.
|
||||
func (a *Authenticator) RequireUser() gin.HandlerFunc {
|
||||
return a.requireUserProperty(func(user *model.User) bool {
|
||||
return a.requireUserProperty(func(_ *model.User) bool {
|
||||
return true
|
||||
})
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue