Skip to content

Commit

Permalink
Fix PAT copying when retrieve an account
Browse files Browse the repository at this point in the history
  • Loading branch information
surik committed Oct 2, 2023
1 parent 42b8b25 commit 7c52f1d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion management/server/sqlite_store.go
Original file line number Diff line number Diff line change
Expand Up @@ -357,7 +357,7 @@ func (s *SqliteStore) GetAccount(accountID string) (*Account, error) {
for _, user := range account.UsersG {
user.PATs = make(map[string]*PersonalAccessToken, len(user.PATs))
for _, pat := range user.PATsG {
user.PATs[pat.ID] = &pat
user.PATs[pat.ID] = pat.Copy()
}
account.Users[user.Id] = user.Copy()
}
Expand Down

0 comments on commit 7c52f1d

Please sign in to comment.