the Chain now aborts the chain if user is not logged in
Dieser Commit ist enthalten in:
Ursprung
fa0b81abe7
Commit
c2ca39ec19
|
@ -43,6 +43,7 @@ func RequireUser(c *gin.Context) {
|
|||
var acc = c.MustGet(httpserver.Accounts).(auth.Account)
|
||||
if acc.Anonymous() {
|
||||
acc.Redirect(c)
|
||||
c.Abort()
|
||||
return
|
||||
}
|
||||
}
|
||||
|
|
Laden…
In neuem Issue referenzieren