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

(-)a/catalogue/moredetail.pl (-1 / +1 lines)
Lines 175-181 foreach my $item (@items){ Link Here
175
    if (C4::Context->preference("IndependentBranches")) {
175
    if (C4::Context->preference("IndependentBranches")) {
176
        #verifying rights
176
        #verifying rights
177
        my $userenv = C4::Context->userenv();
177
        my $userenv = C4::Context->userenv();
178
        unless (($userenv->{'flags'} == 1) or ($userenv->{'branch'} eq $item->{'homebranch'})) {
178
        unless (C4::Context->IsSuperLibrarian() or ($userenv->{'branch'} eq $item->{'homebranch'})) {
179
                $item->{'nomod'}=1;
179
                $item->{'nomod'}=1;
180
        }
180
        }
181
    }
181
    }
(-)a/cataloguing/additem.pl (-1 / +1 lines)
Lines 698-704 foreach my $field (@fields) { Link Here
698
        if (($field->tag eq $branchtagfield) && ($subfieldcode eq $branchtagsubfield) && C4::Context->preference("IndependentBranches")) {
698
        if (($field->tag eq $branchtagfield) && ($subfieldcode eq $branchtagsubfield) && C4::Context->preference("IndependentBranches")) {
699
            #verifying rights
699
            #verifying rights
700
            my $userenv = C4::Context->userenv();
700
            my $userenv = C4::Context->userenv();
701
            unless (($userenv->{'flags'} == 1) or (($userenv->{'branch'} eq $subfieldvalue))){
701
            unless (C4::Context->IsSuperLibrarian() or (($userenv->{'branch'} eq $subfieldvalue))){
702
                $this_row{'nomod'} = 1;
702
                $this_row{'nomod'} = 1;
703
            }
703
            }
704
        }
704
        }
(-)a/tools/batchMod.pl (-2 / +1 lines)
Lines 506-512 sub BuildItemsData{ Link Here
506
                if ($itembranchcode && C4::Context->preference("IndependentBranches")) {
506
                if ($itembranchcode && C4::Context->preference("IndependentBranches")) {
507
						#verifying rights
507
						#verifying rights
508
						my $userenv = C4::Context->userenv();
508
						my $userenv = C4::Context->userenv();
509
						unless (($userenv->{'flags'} == 1) or (($userenv->{'branch'} eq $itembranchcode))){
509
                        unless (C4::Context->IsSuperLibrarian() or (($userenv->{'branch'} eq $itembranchcode))){
510
								$this_row{'nomod'}=1;
510
								$this_row{'nomod'}=1;
511
						}
511
						}
512
				}
512
				}
513
- 

Return to bug 7002