12 lines
228 B
Go
Raw Normal View History

2017-06-07 21:37:13 +00:00
package utils
import (
"github.com/aerogo/aero"
"github.com/animenotifier/arn"
)
2017-06-23 17:22:39 +00:00
// GetUser returns the logged in user for the given context.
2017-06-07 21:37:13 +00:00
func GetUser(ctx *aero.Context) *arn.User {
2017-06-23 17:22:39 +00:00
return arn.GetUserFromContext(ctx)
2017-06-07 21:37:13 +00:00
}