Bug 6641 -- Specially crafted URL can allow unauthorized download of MARC files from staff client

Making sure permissions are checked on download of MARC files from staff client

Signed-off-by: Chris Cormack <chrisc@catalyst.net.nz>
(cherry picked from commit 7ad49e0cae)

Signed-off-by: Chris Nighswonger <chris.nighswonger@gmail.com>
This commit is contained in:
Liz Rea 2011-07-28 16:14:05 -05:00 committed by Chris Nighswonger
parent a11287a6a4
commit 509dd80ef0
1 changed files with 11 additions and 1 deletions

View File

@ -8,9 +8,19 @@ use C4::Auth;
use C4::Output;
use C4::Biblio;
use CGI;
use C4::Auth;
my $query = new CGI;
my ( $template, $loggedinuser, $cookie ) = get_template_and_user({
template_name => "tools/export.tt",
query => $query,
type => "intranet",
authnotrequired => 0,
flagsrequired => { tools => 'export_catalog' },
debug => 1,
});
my $op=$query->param("op");
my $format=$query->param("format");
if ($op eq "export") {