From 0b705b774cce758be72cd7213eaa0a2f2311b05d Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Tue, 1 Apr 2014 10:30:16 +0200 Subject: [PATCH] Bug 7673: the limitation on editing an item does not affect FA framework The pref SubfieldsToAllowForLimitedEdition should not affect Fast cataloguing framework (FA). Signed-off-by: Koha Team AMU Signed-off-by: Katrin Fischer Signed-off-by: Tomas Cohen Arazi --- cataloguing/additem.pl | 2 ++ 1 file changed, 2 insertions(+) diff --git a/cataloguing/additem.pl b/cataloguing/additem.pl index 5f35077317..5e68cb7ac7 100755 --- a/cataloguing/additem.pl +++ b/cataloguing/additem.pl @@ -373,6 +373,8 @@ my $uid = $loggedinuser ? GetMember( borrowernumber => $loggedinuser )->{userid} my $limitededition = $uid ? haspermission($uid, {'editcatalogue' => 'limited_item_edition'}) : undef; # In case user is a superlibrarian, edition is not limited $limitededition = 0 if ($limitededition != 0 && $limitededition->{'superlibrarian'} eq 1); +# In case user has fast cataloging permission (and we're in fast cataloging), edition is not limited +$limitededition = 0 if ($limitededition != 0 && $frameworkcode eq 'FA' && haspermission($uid, {'editcatalogue' => 'fast_cataloging'})); my $today_iso = C4::Dates->today('iso'); my $tagslib = &GetMarcStructure(1,$frameworkcode); -- 2.39.5