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:
parent
8121f398ed
commit
35694c5808
@ -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) }}";
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user