|
Lines 2351-2357
sub libraries_where_can_see_things {
Link Here
|
| 2351 |
return () unless $userenv; # For tests, but userenv should be defined in tests... |
2351 |
return () unless $userenv; # For tests, but userenv should be defined in tests... |
| 2352 |
|
2352 |
|
| 2353 |
my @restricted_branchcodes; |
2353 |
my @restricted_branchcodes; |
| 2354 |
if (C4::Context::only_my_library) { |
2354 |
if ( C4::Context->only_my_library ) { |
| 2355 |
push @restricted_branchcodes, $self->branchcode; |
2355 |
push @restricted_branchcodes, $self->branchcode; |
| 2356 |
} else { |
2356 |
} else { |
| 2357 |
unless ( $self->has_permission( { $permission => $subpermission } ) ) { |
2357 |
unless ( $self->has_permission( { $permission => $subpermission } ) ) { |
| 2358 |
- |
|
|