Lines 373-379
my ($template, $loggedinuser, $cookie)
Link Here
|
373 |
my $uid = $loggedinuser ? GetMember( borrowernumber => $loggedinuser )->{userid} : undef; |
373 |
my $uid = $loggedinuser ? GetMember( borrowernumber => $loggedinuser )->{userid} : undef; |
374 |
my $restrictededition = $uid ? haspermission($uid, {'editcatalogue' => 'edit_items_restricted'}) : undef; |
374 |
my $restrictededition = $uid ? haspermission($uid, {'editcatalogue' => 'edit_items_restricted'}) : undef; |
375 |
# In case user is a superlibrarian, edition is not restricted |
375 |
# In case user is a superlibrarian, edition is not restricted |
376 |
$restrictededition = 0 if ($restrictededition != 0 && $restrictededition->{'superlibrarian'} eq 1); |
376 |
$restrictededition = 0 if ($restrictededition != 0 && C4::Context->IsSuperLibrarian()); |
377 |
# In case user has fast cataloging permission (and we're in fast cataloging), edition is not restricted |
377 |
# In case user has fast cataloging permission (and we're in fast cataloging), edition is not restricted |
378 |
$restrictededition = 0 if ($restrictededition != 0 && $frameworkcode eq 'FA' && haspermission($uid, {'editcatalogue' => 'fast_cataloging'})); |
378 |
$restrictededition = 0 if ($restrictededition != 0 && $frameworkcode eq 'FA' && haspermission($uid, {'editcatalogue' => 'fast_cataloging'})); |
379 |
|
379 |
|