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> (cherry picked from commit915c5d13be) Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com> (cherry picked from commit3435d22040) Signed-off-by: Andrew Fuerste-Henry <andrew@bywatersolutions.com>
This commit is contained in:
parent
5f5ac66a70
commit
0c58835ed6
|
|
@ -29,14 +29,6 @@ use CGI;
|
|||
|
||||
my $input = new CGI;
|
||||
|
||||
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…
Reference in New Issue