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 <koha.aixmarseille@gmail.com> Signed-off-by: Katrin Fischer <Katrin.Fischer.83@web.de> Signed-off-by: Tomas Cohen Arazi <tomascohen@gmail.com>
This commit is contained in:
parent
061a74220e
commit
0b705b774c
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in New Issue