[Koha-patches] [PATCH] Remove acquisitions permission requirement on catalogue/showmarc.pl

Ryan Higgins rch at liblime.com
Thu Sep 11 21:31:05 CEST 2008


This script is linked to from z39.50 search as well as acquisitions.
cataloguing/z3950_search.pl requires only the 'catalogue' flag, so
requiring only that permission here.  A user without acquisitions permissions
would get a login instead of the record display without this change.
---
 catalogue/showmarc.pl |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/catalogue/showmarc.pl b/catalogue/showmarc.pl
index cf1ee3c..17c0951 100755
--- a/catalogue/showmarc.pl
+++ b/catalogue/showmarc.pl
@@ -52,7 +52,7 @@ my ( $template, $loggedinuser, $cookie ) = get_template_and_user(
         query           => $input,
         type            => "intranet",
         authnotrequired => 0,
-        flagsrequired   => { acquisition => 1  },
+        flagsrequired   => { catalogue => 1  },
         debug           => 1,
     }
 );
-- 
1.5.5.GIT




More information about the Koha-patches mailing list