mirror of
https://github.com/netbirdio/netbird.git
synced 2024-12-14 10:50:45 +01:00
fix add missing policy source posture checks
Signed-off-by: bcmmbaga <bethuelmbaga12@gmail.com>
This commit is contained in:
parent
c384874d7d
commit
dc82c2d1ce
@ -203,6 +203,10 @@ func (h *Policies) savePolicy(w http.ResponseWriter, r *http.Request, accountID
|
|||||||
policy.Rules = append(policy.Rules, &pr)
|
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 {
|
if err := h.accountManager.SavePolicy(r.Context(), accountID, userID, &policy, isUpdate); err != nil {
|
||||||
util.WriteError(r.Context(), err, w)
|
util.WriteError(r.Context(), err, w)
|
||||||
return
|
return
|
||||||
|
Loading…
Reference in New Issue
Block a user