From 4c8c996f4d1ae3844a96ffcee7739db809ed2033 Mon Sep 17 00:00:00 2001 From: Goffin Simon Date: Mon, 24 Apr 2017 22:44:18 +0200 Subject: [PATCH] [FIX] payment: Deleting payment tokens from website When deleting payment tokens from website, in My account, by clicking on button "Manage your payment methods", the public user, the user and the portal user got a 403 error. But when creating a subscription for a customer with admin user and setting a payment token for the company of this customer. This payment token could not be deleted or modified by its users. In a few cases, it's needed to delete or modify a payment token, for example, when the expiration date of the payment token is expired. opw:740169 --- addons/payment/security/payment_security.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/payment/security/payment_security.xml b/addons/payment/security/payment_security.xml index c5ad3f62fe7..df797070aed 100644 --- a/addons/payment/security/payment_security.xml +++ b/addons/payment/security/payment_security.xml @@ -15,7 +15,7 @@ Access own payment tokens only - [('partner_id','=',user.partner_id.id)] + ['|', ('partner_id','=',user.partner_id.id), ('partner_id', '=', user.partner_id.commercial_partner_id.id)]