mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-09 03:14:30 -04:00
Fix for auth check when approving quote
This commit is contained in:
parent
40003bf619
commit
e0caca99f2
@ -290,6 +290,15 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
function onApproveClick() {
|
function onApproveClick() {
|
||||||
|
@if ($account->requiresAuthorization($invoice))
|
||||||
|
window.pendingPaymentFunction = approveQuote;
|
||||||
|
showAuthorizationModal();
|
||||||
|
@else
|
||||||
|
approveQuote();
|
||||||
|
@endif
|
||||||
|
}
|
||||||
|
|
||||||
|
function approveQuote() {
|
||||||
$('#approveButton').prop('disabled', true);
|
$('#approveButton').prop('disabled', true);
|
||||||
location.href = "{{ url('/approve/' . $invitation->invitation_key) }}";
|
location.href = "{{ url('/approve/' . $invitation->invitation_key) }}";
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user