From 0dd0768f1862563359eb98a3342dac5d982a2d2e Mon Sep 17 00:00:00 2001 From: Chris Cormack Date: Thu, 13 Oct 2011 15:54:48 +1300 Subject: [PATCH] Bug 6885 Follow up to fix superlibarian permission check (cherry picked from commit cdd798ec3216c6019adccc40935e93736ce4dc3b) Signed-off-by: Chris Nighswonger --- C4/Items.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/C4/Items.pm b/C4/Items.pm index 8781c7d846..9bbc60789a 100644 --- a/C4/Items.pm +++ b/C4/Items.pm @@ -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'}) ) -- 2.39.5