From cdd798ec3216c6019adccc40935e93736ce4dc3b 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 --- C4/Items.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/C4/Items.pm b/C4/Items.pm index 328c6270cb..23eb1eb225 100644 --- a/C4/Items.pm +++ b/C4/Items.pm @@ -2198,7 +2198,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.20.1