return 1 if C4::Context->IsSuperLibrarian();
if ( C4::Context->preference('IndependentBranches') ) {
if ( $userenv && C4::Context->preference('IndependentBranches') ) {
return $userenv->{branch} eq $branchcode;
}
-