Lines 1590-1619
sub can_log_into {
Link Here
|
1590 |
return $can; |
1590 |
return $can; |
1591 |
} |
1591 |
} |
1592 |
|
1592 |
|
1593 |
=head3 libraries_where_can_see_patrons |
|
|
1594 |
|
1595 |
my $libraries = $patron-libraries_where_can_see_patrons; |
1596 |
|
1597 |
Return the list of branchcodes(!) of libraries the patron is allowed to see other patron's infos. |
1598 |
The branchcodes are arbitrarily returned sorted. |
1599 |
We are supposing here that the object is related to the logged in patron (use of C4::Context::only_my_library) |
1600 |
|
1601 |
An empty array means no restriction, the patron can see patron's infos from any libraries. |
1602 |
|
1603 |
=cut |
1604 |
|
1605 |
sub libraries_where_can_see_patrons { |
1606 |
my ($self) = @_; |
1607 |
|
1608 |
return $self->libraries_where_can_see_things( |
1609 |
{ |
1610 |
permission => 'borrowers', |
1611 |
subpermission => 'view_borrower_infos_from_any_libraries', |
1612 |
group_feature => 'ft_hide_patron_info', |
1613 |
} |
1614 |
); |
1615 |
} |
1616 |
|
1617 |
=head3 libraries_where_can_see_things |
1593 |
=head3 libraries_where_can_see_things |
1618 |
|
1594 |
|
1619 |
my $libraries = $thing-libraries_where_can_see_things; |
1595 |
my $libraries = $thing-libraries_where_can_see_things; |