Bug 15579: Fix permission for batch record modification
authorMarc Véron <veron@veron.ch>
Thu, 21 Jan 2016 15:25:33 +0000 (16:25 +0100)
committerBrendan Gallagher <brendan@bywatersolutions.com>
Sat, 23 Jan 2016 18:23:04 +0000 (18:23 +0000)
To test:

- For a patron, permissions 'catalogue' and 'records_batchmod' only
- Log in as this patron
- Go to /cgi-bin/koha/tools/batch_record_modification.pl

Without patch: You have no permisson to acces the page.
With patch: Page 'Batch record modification' displays as expected.

(Amended to fix wrong test plan)

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
Signed-off-by: Brendan Gallagher brendan@bywatersolutions.com
tools/batch_record_modification.pl

index 2f33fbb..50a2b50 100755 (executable)
@@ -44,7 +44,7 @@ my ( $template, $loggedinuser, $cookie ) = get_template_and_user({
         query => $input,
         type => "intranet",
         authnotrequired => 0,
-        flagsrequired => { tools => 'biblio_batchmod' },
+        flagsrequired => { tools => 'records_batchmod' },
 });