Bug 16459: Add patron to a patron card requires catalogue permission
authorJonathan Druart <jonathan.druart@bugs.koha-community.org>
Fri, 6 May 2016 14:55:31 +0000 (15:55 +0100)
committerKyle M Hall <kyle@bywatersolutions.com>
Fri, 8 Jul 2016 12:46:25 +0000 (12:46 +0000)
Currently, serials => 'routing' is required, which does not make any
sense.
It's a copy/paste error when this file has been created (you can blame
me).

Note that I am not sure catalogue is the correct permission, but it's
the one used almost everywhere in this module

Test plan:
Confirm that catalogue is enough to search for patrons to add to a
patron card.

Signed-off-by: Srdjan <srdjan@catalyst.net.nz>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
patroncards/add_user_search.pl

index 9bc3685..3d9f7af 100755 (executable)
@@ -35,7 +35,7 @@ my ( $template, $loggedinuser, $cookie, $staff_flags ) = get_template_and_user(
         query           => $input,
         type            => "intranet",
         authnotrequired => 0,
-        flagsrequired => { serials => 'routing' },
+        flagsrequired   => { catalogue => 1 },
     }
 );