Bug 7018 - need all acq permissions to search
authorKyle M Hall <kyle@bywatersolutions.com>
Wed, 8 Feb 2012 15:45:53 +0000 (10:45 -0500)
committerPaul Poulain <paul.poulain@biblibre.com>
Thu, 16 Feb 2012 17:44:56 +0000 (18:44 +0100)
Single line fix. Changes permissions required for histsearch.pl
from requiring * for acquisitions to only requiring
group_manage, order_manage, and order_receive

Signed-off-by: Nicole C. Engard <nengard@bywatersolutions.com>
Signed-off-by: Paul Poulain <paul.poulain@biblibre.com>
acqui/histsearch.pl

index ff68599..cd3e444 100755 (executable)
@@ -77,7 +77,7 @@ my ( $template, $loggedinuser, $cookie ) = get_template_and_user(
         query           => $input,
         type            => "intranet",
         authnotrequired => 0,
-        flagsrequired   => { acquisition => 1 },
+        flagsrequired   => { acquisition => 'group_manage', acquisition => 'order_manage', acquisition => 'order_receive' },
         debug           => 1,
     }
 );