Bugzilla – Attachment 75177 Details for
Bug 20730
Missing authentication check in serials/routing.pl
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 20730: Move the authentication block before doing anything
Bug-20730-Move-the-authentication-block-before-doi.patch (text/plain), 1.51 KB, created by
Jonathan Druart
on 2018-05-08 17:28:25 UTC
(
hide
)
Description:
Bug 20730: Move the authentication block before doing anything
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2018-05-08 17:28:25 UTC
Size:
1.51 KB
patch
obsolete
>From a32d56f45d3e8764cfea990942b04b0da2c6d541 Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >Date: Tue, 8 May 2018 14:27:38 -0300 >Subject: [PATCH] Bug 20730: Move the authentication block before doing > anything > >No need to add more information here, it's self-explanatory... >--- > serials/routing.pl | 19 ++++++++++--------- > 1 file changed, 10 insertions(+), 9 deletions(-) > >diff --git a/serials/routing.pl b/serials/routing.pl >index ad5fe380b6..c14205aaaf 100755 >--- a/serials/routing.pl >+++ b/serials/routing.pl >@@ -51,6 +51,16 @@ my $date_selected = $query->param('date_selected'); > $date_selected ||= q{}; > my $dbh = C4::Context->dbh; > >+my ( $template, $loggedinuser, $cookie ) = get_template_and_user( >+ { >+ template_name => 'serials/routing.tt', >+ query => $query, >+ type => 'intranet', >+ authnotrequired => 0, >+ flagsrequired => { serials => 'routing' }, >+ } >+); >+ > if($op eq 'delete'){ > delroutingmember($routingid,$subscriptionid); > } >@@ -84,15 +94,6 @@ foreach my $dateseq (@{$serialdates}) { > push @{$dates}, $d; > } > >-my ($template, $loggedinuser, $cookie) >-= get_template_and_user({template_name => 'serials/routing.tt', >- query => $query, >- type => 'intranet', >- authnotrequired => 0, >- flagsrequired => {serials => 'routing'}, >- debug => 1, >- }); >- > my $member_loop = []; > for my $routing ( @routinglist ) { > my $member = Koha::Patrons->find( $routing->{borrowernumber} )->unblessed; >-- >2.11.0
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 20730
:
75177
|
75179
|
75181