Browse Source

Bug 27061: Remove duplicate permission check in svc/mana/search

There is a call to check_cookie_auth then another one to get_template_and_user

Test plan:
Use mana to create new report and new subscription.
Confirm that you need the necessary permissions to use it

Signed-off-by: Owen Leonard <oleonard@myacpl.org>
Signed-off-by: Julian Maurice <julian.maurice@biblibre.com>

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
master
Jonathan Druart 5 months ago
parent
commit
915c5d13be
1 changed files with 0 additions and 8 deletions
  1. +0
    -8
      svc/mana/search

+ 0
- 8
svc/mana/search View File

@@ -29,14 +29,6 @@ use CGI;

my $input = CGI->new;

my ( $auth_status, $sessionID ) =
check_cookie_auth( $input->cookie('CGISESSID'),
{ serials => 'create_subscription' } );

if ( $auth_status ne "ok" ) {
exit 0;
}

my $templatename;
if ($input->param( "resource" ) eq 'report') {
$templatename = "mana/mana-report-search-result.tt";


Loading…
Cancel
Save