X-Git-Url: http://git.rot13.org/?a=blobdiff_plain;f=circ%2Foverdue.pl;h=80a9d7f9b25387588e472e5d7b4e3de69ec9fb69;hb=1b08f924513daadaff1258659e17d5caf0a53ea4;hp=1e1bd6f216655521fc72a90fbf58232c4addb302;hpb=429e7c3c75b7cfdc51b4147bfa7cef7c51ae20df;p=koha.git diff --git a/circ/overdue.pl b/circ/overdue.pl index 1e1bd6f216..80a9d7f9b2 100755 --- a/circ/overdue.pl +++ b/circ/overdue.pl @@ -91,10 +91,11 @@ while (my ($itemtype, $description) =$req->fetchrow) { itemtypename => $description, }; } -my $onlymine=C4::Context->preference('IndependantBranches') && - C4::Context->userenv && - C4::Context->userenv->{flags} % 2 !=1 && - C4::Context->userenv->{branch}; +my $onlymine = + C4::Context->preference('IndependentBranches') + && C4::Context->userenv + && !C4::Context->IsSuperLibrarian() + && C4::Context->userenv->{branch}; $branchfilter = C4::Context->userenv->{'branch'} if ($onlymine && !$branchfilter);