[IMP] payment: provide the access token to the assign route

to be able to safely check the user is allowed to modify the specified
portal record.

Part-of: odoo/odoo#94020
This commit is contained in:
Victor Feyens
2022-07-28 10:27:54 +02:00
parent 869f933252
commit 5e2d675149
@@ -53,6 +53,7 @@ odoo.define('payment.manage_form', require => {
this._rpc({
route: this.txContext.assignTokenRoute,
params: {
'access_token': this.txContext.accessToken,
'token_id': tokenId,
'csrf_token': core.csrf_token,
}