Skip to content

Commit 90ead15

Browse files
committed
ns: Fix field mask check
1 parent 3025dc5 commit 90ead15

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

pkg/networkserver/grpc_mac_settings_profile.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@ package networkserver
1717

1818
import (
1919
"context"
20-
"slices"
2120
"strconv"
2221

2322
"go.thethings.network/lorawan-stack/v3/pkg/auth/rights"
@@ -109,7 +108,7 @@ func (m *NsMACSettingsProfileRegistry) Update(ctx context.Context, req *ttnpb.Up
109108
if req.FieldMask != nil {
110109
paths = req.FieldMask.GetPaths()
111110
}
112-
if slices.Contains(paths, "end_devices_ids") {
111+
if ttnpb.HasAnyField(paths, "end_devices_ids") {
113112
return nil, errInvalidFieldMask.WithAttributes("field_mask", "end_devices_ids")
114113
}
115114
profile, err := m.registry.Set(

0 commit comments

Comments
 (0)