X-Git-Url: http://koha-dev.rot13.org:8081/gitweb/?a=blobdiff_plain;f=suggestion%2Fsuggestion.pl;h=c0327ad3314e6a48dcbf2edacd069f0c35593b3a;hb=1d276d58099fa60666bccc13c7b9d839946946c1;hp=7d504470de8e6b5291d67adac03b244cba002c0a;hpb=73d4ac9bab051a7c12677d427f669c092469f4df;p=koha_fer diff --git a/suggestion/suggestion.pl b/suggestion/suggestion.pl index 7d504470de..c0327ad331 100755 --- a/suggestion/suggestion.pl +++ b/suggestion/suggestion.pl @@ -288,10 +288,11 @@ if(defined($returnsuggested) and $returnsuggested ne "noone") #branch display management my $branchfilter = ($displayby ne "branchcode") ? $input->param('branchcode') : ''; -my $onlymine=C4::Context->preference('IndependentBranches') && - C4::Context->userenv && - C4::Context->userenv->{flags}!=1 && - C4::Context->userenv->{branch}; +my $onlymine = + C4::Context->preference('IndependentBranches') + && C4::Context->userenv + && !C4::Context->IsSuperLibrarian() + && C4::Context->userenv->{branch}; my $branches = GetBranches($onlymine); my @branchloop;