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:
parent
84f49a61c5
commit
0dd0768f18
|
|
@ -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'}) )
|
||||
|
|
|
|||
Loading…
Reference in New Issue