diff --git a/C4/Items.pm b/C4/Items.pm index 4aaf21ebe1..41b5d2c31c 100644 --- a/C4/Items.pm +++ b/C4/Items.pm @@ -2115,7 +2115,7 @@ sub DelItemCheck { if ($onloan) { $error = "book_on_loan"; } - elsif ( C4::Context->userenv->{flags} & 1 and + elsif ( !(C4::Context->userenv->{flags} & 1) and C4::Context->preference("IndependantBranches") and (C4::Context->userenv->{branch} ne $item->{C4::Context->preference("HomeOrHoldingBranch")||'homebranch'}) )