Skip to content

Commit

Permalink
Fiks av sjekk mot saksbehandlere som har løst aksjonspunkt
Browse files Browse the repository at this point in the history
  • Loading branch information
tendestad committed Jun 12, 2024
1 parent a7a3273 commit a81394d
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -320,7 +320,7 @@ public Response settAnsvarligSaksbehandler(@Valid @NotNull ForvaltningBehandling
.filter(Objects::nonNull)
.collect(Collectors.toSet());

if (saksbehandlerePåBehandlingen.contains(input.getSaksbehandlerIdent())){
if (!saksbehandlerePåBehandlingen.contains(input.getSaksbehandlerIdent())){
throw new IllegalArgumentException("Saksbehandler er ikke på behandlingen fra før, avbryter. Aktuelle er: " + saksbehandlerePåBehandlingen);
}
if (behandling.getAnsvarligSaksbehandler() != null) {
Expand Down

0 comments on commit a81394d

Please sign in to comment.