Lines 917-927
sub CanUserUseBudget {
Link Here
|
917 |
|
917 |
|
918 |
if (not ref $borrower) { |
918 |
if (not ref $borrower) { |
919 |
$borrower = Koha::Patrons->find( $borrower ); |
919 |
$borrower = Koha::Patrons->find( $borrower ); |
920 |
if ( $borrower ) { |
920 |
return 0 unless $borrower; |
921 |
$borrower = $borrower->unblessed; |
921 |
$borrower = $borrower->unblessed; |
922 |
} else { |
|
|
923 |
return 0; |
924 |
} |
925 |
} |
922 |
} |
926 |
if (not ref $budget) { |
923 |
if (not ref $budget) { |
927 |
$budget = GetBudget($budget); |
924 |
$budget = GetBudget($budget); |
Lines 1005-1015
sub CanUserModifyBudget {
Link Here
|
1005 |
|
1002 |
|
1006 |
if (not ref $borrower) { |
1003 |
if (not ref $borrower) { |
1007 |
$borrower = Koha::Patrons->find( $borrower ); |
1004 |
$borrower = Koha::Patrons->find( $borrower ); |
1008 |
if ( $borrower ) { |
1005 |
return 0 unless $borrower; |
1009 |
$borrower = $borrower->unblessed; |
1006 |
$borrower = $borrower->unblessed; |
1010 |
} else { |
|
|
1011 |
return 0; |
1012 |
} |
1013 |
} |
1007 |
} |
1014 |
if (not ref $budget) { |
1008 |
if (not ref $budget) { |
1015 |
$budget = GetBudget($budget); |
1009 |
$budget = GetBudget($budget); |
1016 |
- |
|
|