summaryrefslogtreecommitdiffstats
path: root/services/auth/oauth2.go
diff options
context:
space:
mode:
Diffstat (limited to 'services/auth/oauth2.go')
-rw-r--r--services/auth/oauth2.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/services/auth/oauth2.go b/services/auth/oauth2.go
index 42c91fac37..68638a0806 100644
--- a/services/auth/oauth2.go
+++ b/services/auth/oauth2.go
@@ -38,7 +38,7 @@ func CheckOAuthAccessToken(accessToken string) int64 {
return 0
}
var grant *auth.OAuth2Grant
- if grant, err = auth.GetOAuth2GrantByID(token.GrantID); err != nil || grant == nil {
+ if grant, err = auth.GetOAuth2GrantByID(db.DefaultContext, token.GrantID); err != nil || grant == nil {
return 0
}
if token.Type != oauth2.TypeAccessToken {