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