1
0
Fork 0
mirror of https://github.com/miniflux/v2.git synced 2025-07-27 17:28:38 +00:00

Update vendor dependencies

This commit is contained in:
Frédéric Guillot 2018-07-06 21:18:14 -07:00
parent 34a3fe426b
commit 459bb4531f
747 changed files with 89857 additions and 39711 deletions

View file

@ -15,7 +15,11 @@ import (
)
func Current(ctx context.Context) *User {
u := user.Current(internal.ClassicContextFromContext(ctx))
c, err := internal.ClassicContextFromContext(ctx)
if err != nil {
panic(err)
}
u := user.Current(c)
if u == nil {
return nil
}
@ -31,5 +35,10 @@ func Current(ctx context.Context) *User {
}
func IsAdmin(ctx context.Context) bool {
return user.IsAdmin(internal.ClassicContextFromContext(ctx))
c, err := internal.ClassicContextFromContext(ctx)
if err != nil {
panic(err)
}
return user.IsAdmin(c)
}