|
Lines 3596-3604
sub is_anonymous {
Link Here
|
| 3596 |
|
3596 |
|
| 3597 |
my $flags = $patron->permissions |
3597 |
my $flags = $patron->permissions |
| 3598 |
|
3598 |
|
| 3599 |
Returns a structure such as: |
3599 |
Returns a hashref of the patron's permissions. This method has the same |
|
|
3600 |
return structure as C4::Auth::getuserflags for consistency. |
| 3601 |
|
| 3602 |
Exemple return structure: |
| 3600 |
{ |
3603 |
{ |
| 3601 |
"permissions": 1, |
3604 |
"superlibrarian": 0, |
|
|
3605 |
"permissions": 0, |
| 3602 |
"borrowers": 1, |
3606 |
"borrowers": 1, |
| 3603 |
"circulate": { |
3607 |
"circulate": { |
| 3604 |
"manage_curbside_pickups": 1, |
3608 |
"manage_curbside_pickups": 1, |
|
Lines 3609-3621
Returns a structure such as:
Link Here
|
| 3609 |
"manage_bookings": 1 |
3613 |
"manage_bookings": 1 |
| 3610 |
}, |
3614 |
}, |
| 3611 |
"catalogue": 1, |
3615 |
"catalogue": 1, |
| 3612 |
"reserveforothers": { |
3616 |
"reserveforothers": 0, |
| 3613 |
"place_holds": 1, |
3617 |
"tools": 0, |
| 3614 |
"modify_holds_priority": 1 |
3618 |
... |
| 3615 |
} |
3619 |
|
| 3616 |
} |
3620 |
} |
| 3617 |
where a 1 indicates full permissions and a hash indicates |
3621 |
|
| 3618 |
partial permissions with the given permissions as hash keys |
3622 |
All permission flags are included in the returned hashref: |
|
|
3623 |
- Flags set to 1 indicate the user has full permissions for that module |
| 3624 |
- Flags set to 0 indicate the user does not have that permission |
| 3625 |
- Flags set to a hashref indicate partial/granular permissions, where the |
| 3626 |
hash keys are the specific subpermissions granted |
| 3619 |
|
3627 |
|
| 3620 |
=cut |
3628 |
=cut |
| 3621 |
|
3629 |
|
| 3622 |
- |
|
|