1
0
mirror of https://github.com/netbirdio/netbird.git synced 2025-07-13 12:55:53 +02:00

Fix PAT copy for GetUserByTokenID in SQLite store ()

This commit is contained in:
Yury Gargay
2023-11-15 14:15:12 +01:00
committed by GitHub
parent 70c7543e36
commit fb42fedb58

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