Skip to content

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

chore: remove dead code (#10511)

p0ny8ca9746f8a6e
diff --git a/backend/store/principal.go b/backend/store/principal.go
index 690a0e6856..93d1cfa1d4 100644
--- a/backend/store/principal.go
+++ b/backend/store/principal.go
@@ -32,7 +32,6 @@ type UpdateUserMessage struct {
Email *string
Name *string
PasswordHash *string
- Role *api.Role
Roles *[]api.Role
Delete *bool
MFAConfig *storepb.MFAConfig
@@ -377,10 +376,6 @@ func (s *Store) UpdateUser(ctx context.Context, userID int, patch *UpdateUserMes
var patchRoles []api.Role
doPatchRoles := false
- if v := patch.Role; v != nil {
- doPatchRoles = true
- patchRoles = []api.Role{*v}
- }
// patch.Roles overrides patch.Role
if v := patch.Roles; v != nil {
doPatchRoles = true