0
0
Fork 0
mirror of https://github.com/go-gitea/gitea synced 2024-11-21 13:40:58 +01:00

fix merge and conflict

This commit is contained in:
wxiaoguang 2024-11-21 11:02:42 +08:00 committed by GitHub
parent 225b734281
commit 9829a969f4
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -122,7 +122,7 @@ func (o *OAuth2) userIDFromToken(ctx context.Context, tokenSHA string, store Dat
}
// Otherwise, check if this is an OAuth access token
accessTokenScope, uid := GetOAuthAccessTokenScopeAndUserID(ctx, tokenSHA)
accessTokenScope, uid := GetOAuthAccessTokenScopeAndUserID(ctx, tokenSHA)
if uid != 0 {
store.GetData()["IsApiToken"] = true
store.GetData()["ApiTokenScope"] = accessTokenScope