Skip to content

Database governance built for humans and agents — controlling changes and access across every major database.

fix: bool algebra (#12052)

Danny Xu25a34b3946d9
diff --git a/backend/store/principal.go b/backend/store/principal.go
index f42501ad8a..364106976c 100644
--- a/backend/store/principal.go
+++ b/backend/store/principal.go
@@ -389,7 +389,7 @@ func (s *Store) UpdateUser(ctx context.Context, userID int, patch *UpdateUserMes
return nil, err
}
- if patch.Email != nil && patch.Phone != nil {
+ if patch.Email != nil || patch.Phone != nil {
s.projectIDPolicyCache.Purge()
s.projectPolicyCache.Purge()
}