Skip to content

Commit

Permalink
fix(server): enforce policy of layer count on layer group creation co…
Browse files Browse the repository at this point in the history
…rrectly
  • Loading branch information
rot1024 committed Dec 1, 2022
1 parent 67e79f7 commit 193c37b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/internal/usecase/interactor/layer.go
Original file line number Diff line number Diff line change
Expand Up @@ -312,7 +312,7 @@ func (i *Layer) AddGroup(ctx context.Context, inp interfaces.AddLayerGroupInput,
}
}

if err := p.EnforceLayerCount(s + dsc); err != nil {
if err := p.EnforceLayerCount(s + dsc + 1); err != nil {
return nil, nil, err
}
}
Expand Down

0 comments on commit 193c37b

Please sign in to comment.