Lines 128-133
my ( $template, $loggedinuser, $cookie ) = get_template_and_user (
Link Here
|
128 |
flagsrequired => { circulate => 'circulate_remaining_permissions' }, |
128 |
flagsrequired => { circulate => 'circulate_remaining_permissions' }, |
129 |
} |
129 |
} |
130 |
); |
130 |
); |
|
|
131 |
my $logged_in_user = Koha::Patrons->find( $loggedinuser ) or die "Not logged in"; |
131 |
|
132 |
|
132 |
my $force_allow_issue = $query->param('forceallow') || 0; |
133 |
my $force_allow_issue = $query->param('forceallow') || 0; |
133 |
if (!C4::Auth::haspermission( C4::Context->userenv->{id} , { circulate => 'force_checkout' } )) { |
134 |
if (!C4::Auth::haspermission( C4::Context->userenv->{id} , { circulate => 'force_checkout' } )) { |
Lines 262-267
if ($findborrower) {
Link Here
|
262 |
# get the borrower information..... |
263 |
# get the borrower information..... |
263 |
$patron ||= Koha::Patrons->find( $borrowernumber ) if $borrowernumber; |
264 |
$patron ||= Koha::Patrons->find( $borrowernumber ) if $borrowernumber; |
264 |
if ($patron) { |
265 |
if ($patron) { |
|
|
266 |
|
267 |
$template->param( borrowernumber => $patron->borrowernumber ); |
268 |
output_and_exit_if_error( $query, $cookie, $template, { module => 'members', logged_in_user => $logged_in_user, current_patron => $patron } ); |
269 |
|
265 |
my $overdues = $patron->get_overdues; |
270 |
my $overdues = $patron->get_overdues; |
266 |
my $issues = $patron->checkouts; |
271 |
my $issues = $patron->checkouts; |
267 |
my $balance = $patron->account->balance; |
272 |
my $balance = $patron->account->balance; |