Fix PAT copy for GetUserByTokenID in SQLite store (#1312)

This commit is contained in:
Yury Gargay 2023-11-15 14:15:12 +01:00 committed by GitHub
parent 70c7543e36
commit fb42fedb58
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -298,7 +298,7 @@ func (s *SqliteStore) GetUserByTokenID(tokenID string) (*User, error) {
user.PATs = make(map[string]*PersonalAccessToken, len(user.PATsG))
for _, pat := range user.PATsG {
user.PATs[pat.ID] = &pat
user.PATs[pat.ID] = pat.Copy()
}
return &user, nil