merge complete (#58274)

Co-authored-by: Ryan McKinley <ryantxu@gmail.com>
This commit is contained in:
Eric Leijonmarck
2022-11-04 15:03:07 -07:00
committed by GitHub
co-authored by Ryan McKinley
parent 94594d61e6
commit 9b07bc7e98
3 changed files with 74 additions and 5 deletions
+3
View File
@@ -306,6 +306,9 @@ func (u *SignedInUser) GetCacheKey() (string, error) {
if u.IsApiKeyUser() {
return fmt.Sprintf("%d-apikey-%d", u.OrgID, u.ApiKeyID), nil
}
if u.IsServiceAccountUser() { // not considered a real user
return fmt.Sprintf("%d-service-%d", u.OrgID, u.UserID), nil
}
return "", ErrNoUniqueID
}