1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-08 20:22:42 +01:00

Fix for auth check when approving quote

This commit is contained in:
Hillel Coren 2018-01-12 11:31:49 +02:00
parent 8121f398ed
commit 35694c5808

View File

@ -290,6 +290,15 @@
}
function onApproveClick() {
@if ($account->requiresAuthorization($invoice))
window.pendingPaymentFunction = approveQuote;
showAuthorizationModal();
@else
approveQuote();
@endif
}
function approveQuote() {
$('#approveButton').prop('disabled', true);
location.href = "{{ url('/approve/' . $invitation->invitation_key) }}";
}