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:
parent
34a3fe426b
commit
459bb4531f
747 changed files with 89857 additions and 39711 deletions
13
vendor/google.golang.org/appengine/user/user_classic.go
generated
vendored
13
vendor/google.golang.org/appengine/user/user_classic.go
generated
vendored
|
@ -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)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue