Bug 6885 Follow up to fix superlibarian permission check

(cherry picked from commit cdd798ec32)

Signed-off-by: Chris Nighswonger <chris.nighswonger@gmail.com>
This commit is contained in:
Chris Cormack 2011-10-13 15:54:48 +13:00 committed by Chris Nighswonger
parent 84f49a61c5
commit 0dd0768f18
1 changed files with 1 additions and 1 deletions

View File

@ -2103,7 +2103,7 @@ sub DelItemCheck {
if ($onloan) {
$error = "book_on_loan";
}
elsif ( C4::Context->userenv->{flags} % 2 != 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'}) )