View | Details | Raw Unified | Return to bug 7673
Collapse All | Expand All

(-)a/cataloguing/additem.pl (-1 / +1 lines)
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
(-)a/tools/batchMod.pl (-2 / +1 lines)
Lines 74-80 my ($template, $loggedinuser, $cookie) Link Here
74
my $uid = $loggedinuser ? GetMember( borrowernumber => $loggedinuser )->{userid} : undef;
74
my $uid = $loggedinuser ? GetMember( borrowernumber => $loggedinuser )->{userid} : undef;
75
my $restrictededition = $uid ? haspermission($uid,  {'tools' => 'items_batchmod_restricted'}) : undef;
75
my $restrictededition = $uid ? haspermission($uid,  {'tools' => 'items_batchmod_restricted'}) : undef;
76
# In case user is a superlibrarian, edition is not restricted
76
# In case user is a superlibrarian, edition is not restricted
77
$restrictededition = 0 if ($restrictededition != 0 && $restrictededition->{'superlibrarian'} eq 1);
77
$restrictededition = 0 if ($restrictededition != 0 && C4::Context->IsSuperLibrarian());
78
78
79
my $today_iso = C4::Dates->today('iso');
79
my $today_iso = C4::Dates->today('iso');
80
$template->param(today_iso => $today_iso);
80
$template->param(today_iso => $today_iso);
81
- 

Return to bug 7673