X-Git-Url: http://koha-dev.rot13.org:8081/gitweb/?a=blobdiff_plain;f=mainpage.pl;h=415961875115b998fb7ebffbadbfa2b1fec31507;hb=4290fa60ef0fd93f1c0b51485f3b3ec74f316043;hp=8aa84958683194189b5eda7d87b0830b78d92759;hpb=c9cb55ef4710bfee111e6e2721f3ca2bf58d98f7;p=koha_fer diff --git a/mainpage.pl b/mainpage.pl index 8aa8495868..4159618751 100755 --- a/mainpage.pl +++ b/mainpage.pl @@ -42,8 +42,6 @@ my ( $template, $loggedinuser, $cookie, $flags ) = get_template_and_user( } ); -C4::Auth::version_check($query, 'intranet', $cookie); - my $all_koha_news = &GetNewsToDisplay("koha"); my $koha_news_count = scalar @$all_koha_news; @@ -53,7 +51,7 @@ $template->param( ); my $branch = - C4::Context->preference("IndependantBranches") + C4::Context->preference("IndependentBranches") && !$flags->{'superlibrarian'} ? C4::Context->userenv()->{'branch'} : undef;