diff --git a/management/server/http/policies_handler.go b/management/server/http/policies_handler.go index 5b6e1121c..225d7e1f3 100644 --- a/management/server/http/policies_handler.go +++ b/management/server/http/policies_handler.go @@ -203,6 +203,10 @@ func (h *Policies) savePolicy(w http.ResponseWriter, r *http.Request, accountID policy.Rules = append(policy.Rules, &pr) } + if req.SourcePostureChecks != nil { + policy.SourcePostureChecks = *req.SourcePostureChecks + } + if err := h.accountManager.SavePolicy(r.Context(), accountID, userID, &policy, isUpdate); err != nil { util.WriteError(r.Context(), err, w) return