From 4abafca3f6e416fb955a07a62db6d8fce3593ff2 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). --- cataloguing/additem.pl | 2 ++ 1 file changed, 2 insertions(+) diff --git a/cataloguing/additem.pl b/cataloguing/additem.pl index 9b59a85..32e522a 100755 --- a/cataloguing/additem.pl +++ b/cataloguing/additem.pl @@ -374,6 +374,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); -- 1.7.10.4