Bug 5087: (QA follow-up) Fix leakage in opac-downloadshelf.pl
authorTomas Cohen Arazi <tomascohen@theke.io>
Mon, 20 Jul 2020 15:02:14 +0000 (12:02 -0300)
committerJonathan Druart <jonathan.druart@bugs.koha-community.org>
Thu, 23 Jul 2020 08:52:10 +0000 (10:52 +0200)
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>

opac/opac-downloadshelf.pl

index ac6e910..f317f3c 100755 (executable)
@@ -140,7 +140,17 @@ if ( $shelf and $shelf->can_be_viewed( $borrowernumber ) ) {
         } else {
             $template->param(fullpage => 1);
         }
-        $template->param(csv_profiles => [ Koha::CsvProfiles->search({ type => 'marc', used_for => 'export_records' }) ]);
+        $template->param(
+            csv_profiles => [
+                Koha::CsvProfiles->search(
+                    {
+                        type       => 'marc',
+                        used_for   => 'export_records',
+                        staff_only => 0
+                    }
+                )
+            ]
+        );
         $template->param( shelf => $shelf );
         output_html_with_http_headers $query, $cookie, $template->output;
     }