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

(-)a/cataloguing/additem.pl (-1 / +1 lines)
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
(-)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