Skip to content

Commit

Permalink
remove unknown user property
Browse files Browse the repository at this point in the history
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
  • Loading branch information
butonic committed Dec 8, 2022
1 parent 9fdbed5 commit 51cf5b3
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions services/graph/pkg/service/v0/users.go
Original file line number Diff line number Diff line change
Expand Up @@ -434,14 +434,6 @@ func (g Graph) PatchUser(w http.ResponseWriter, r *http.Request) {
features = append(features, events.UserFeature{Name: "displayname", Value: *name})
}

if enabled, ok := changes.GetAccountEnabledOk(); ok {
e := events.UserFeature{Name: "enabled", Value: "false"}
if *enabled {
e.Value = "true"
}
features = append(features, e)
}

logger.Debug().Str("nameid", nameOrID).Interface("changes", *changes).Msg("calling update user on backend")
u, err := g.identityBackend.UpdateUser(r.Context(), nameOrID, *changes)
if err != nil {
Expand Down

0 comments on commit 51cf5b3

Please sign in to comment.