Bug 4517 - add authentication to reorder_members.pl
Signed-off-by: Galen Charlton <gmcharlt@gmail.com>
This commit is contained in:
parent
795e201ea6
commit
193b4f2883
1 changed files with 5 additions and 0 deletions
|
@ -21,12 +21,17 @@
|
|||
use strict;
|
||||
use warnings;
|
||||
use CGI;
|
||||
use C4::Auth qw( checkauth );
|
||||
use C4::Serials qw( reorder_members );
|
||||
|
||||
my $query = CGI->new;
|
||||
my $subscriptionid = $query->param('subscriptionid');
|
||||
my $routingid = $query->param('routingid');
|
||||
my $rank = $query->param('rank');
|
||||
|
||||
my ( $user, $cookie, $sesion_id, $flags ) =
|
||||
checkauth( $query, 0, { serials => 1 }, 'intranet' );
|
||||
|
||||
reorder_members( $subscriptionid, $routingid, $rank );
|
||||
|
||||
print $query->redirect(
|
||||
|
|
Loading…
Reference in a new issue