Lines 1860-1866
sub can_edit_items_from {
Link Here
|
1860 |
|
1860 |
|
1861 |
Return the list of branchcodes(!) of libraries the patron is allowed to items for. |
1861 |
Return the list of branchcodes(!) of libraries the patron is allowed to items for. |
1862 |
The branchcodes are arbitrarily returned sorted. |
1862 |
The branchcodes are arbitrarily returned sorted. |
1863 |
We are supposing here that the object is related to the logged in patron (use of C4::Context::only_my_library) |
1863 |
We are supposing here that the object is related to the logged in patron (use of |
|
|
1864 |
C4::Context::only_my_library) |
1864 |
|
1865 |
|
1865 |
An empty array means no restriction, the user can edit any item. |
1866 |
An empty array means no restriction, the user can edit any item. |
1866 |
|
1867 |
|
Lines 1880-1892
sub libraries_where_can_edit_items {
Link Here
|
1880 |
|
1881 |
|
1881 |
=head3 libraries_where_can_see_patrons |
1882 |
=head3 libraries_where_can_see_patrons |
1882 |
|
1883 |
|
1883 |
my $libraries = $patron->libraries_where_can_see_patrons; |
1884 |
my $libraries = $patron->libraries_where_can_see_patrons; |
|
|
1885 |
|
1886 |
Return the list of branchcodes(!) of libraries the patron is allowed to see other |
1887 |
patron's infos. |
1884 |
|
1888 |
|
1885 |
Return the list of branchcodes(!) of libraries the patron is allowed to see other patron's infos. |
|
|
1886 |
The branchcodes are arbitrarily returned sorted. |
1889 |
The branchcodes are arbitrarily returned sorted. |
1887 |
We are supposing here that the object is related to the logged in patron (use of C4::Context::only_my_library) |
|
|
1888 |
|
1890 |
|
1889 |
An empty array means no restriction, the patron can see patron's infos from any libraries. |
1891 |
We are supposing here that the object is related to the logged in patron (use of |
|
|
1892 |
C4::Context::only_my_library) |
1893 |
|
1894 |
An empty array means no restriction, the patron can see patron's infos from any |
1895 |
libraries. |
1890 |
|
1896 |
|
1891 |
=cut |
1897 |
=cut |
1892 |
|
1898 |
|
Lines 1904-1912
sub libraries_where_can_see_patrons {
Link Here
|
1904 |
|
1910 |
|
1905 |
=head3 can_see_things_from |
1911 |
=head3 can_see_things_from |
1906 |
|
1912 |
|
1907 |
my $can_see = $patron->can_see_things_from( $branchcode ); |
1913 |
my $can_see = $patron->can_see_things_from( |
|
|
1914 |
{ |
1915 |
branchcode => $branchcode, |
1916 |
permission => $permission, |
1917 |
subpermission => $subpermission, |
1918 |
group_feature => $group_feature |
1919 |
} |
1920 |
); |
1908 |
|
1921 |
|
1909 |
Return true if the I<Koha::Patron> can perform some action on the given thing |
1922 |
Return true if the I<Koha::Patron> can perform some action, as described by a |
|
|
1923 |
permission, subpermission, group_feature combination, at the passed library. |
1910 |
|
1924 |
|
1911 |
=cut |
1925 |
=cut |
1912 |
|
1926 |
|
Lines 1962-1975
sub can_log_into {
Link Here
|
1962 |
|
1976 |
|
1963 |
=head3 libraries_where_can_see_things |
1977 |
=head3 libraries_where_can_see_things |
1964 |
|
1978 |
|
1965 |
my $libraries = $patron->libraries_where_can_see_things; |
1979 |
my $libraries = $patron->libraries_where_can_see_things( |
|
|
1980 |
{ |
1981 |
permission => $permission, |
1982 |
subpermission => $subpermission, |
1983 |
group_feature => $group_feature |
1984 |
} |
1985 |
); |
1986 |
|
1987 |
Returns a list of libraries where this user is allowed to perform an action, as |
1988 |
defined by a permission, subpermission, group_feature combination. |
1966 |
|
1989 |
|
1967 |
Returns a list of libraries where an aribitarary action is allowed to be taken by the logged in librarian |
1990 |
We account for `IndependentBranches` and permission/subpermission assignements |
1968 |
against an object based on some branchcode related to the object ( patron branchcode, item homebranch, etc ). |
1991 |
before looking into library group allowances. |
1969 |
|
1992 |
|
1970 |
We are supposing here that the object is related to the logged in librarian (use of C4::Context::only_my_library) |
1993 |
We are assuming here that the object is related to the logged in librarian (use |
|
|
1994 |
of C4::Context::only_my_library) |
1971 |
|
1995 |
|
1972 |
An empty array means no restriction, the thing can see thing's infos from any libraries. |
1996 |
An empty array means no restriction, the thing can see thing's infos from any |
|
|
1997 |
libraries. |
1973 |
|
1998 |
|
1974 |
=cut |
1999 |
=cut |
1975 |
|
2000 |
|
1976 |
- |
|
|