From 1107c6a208177d8c514328ea129f239d60bad277 Mon Sep 17 00:00:00 2001 From: Alexandre SPANGARO Date: Tue, 16 Nov 2021 04:32:09 +0100 Subject: [PATCH] Modify name of advance right --- htdocs/core/modules/modSociete.class.php | 2 +- htdocs/societe/paymentmodes.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/htdocs/core/modules/modSociete.class.php b/htdocs/core/modules/modSociete.class.php index ba8373a9269..e70011a2195 100644 --- a/htdocs/core/modules/modSociete.class.php +++ b/htdocs/core/modules/modSociete.class.php @@ -201,7 +201,7 @@ class modSociete extends DolibarrModules $this->rights[$r][0] = 130; $this->rights[$r][1] = 'Modify thirdparty information payment'; $this->rights[$r][3] = 0; - $this->rights[$r][4] = 'addupdate_thirdparty_payment_information'; // Visible if option MAIN_USE_ADVANCED_PERMS is on + $this->rights[$r][4] = 'thirdparty_paymentinformation_advance'; // Visible if option MAIN_USE_ADVANCED_PERMS is on $this->rights[$r][5] = 'write'; // 262 : Restrict access to sales representative diff --git a/htdocs/societe/paymentmodes.php b/htdocs/societe/paymentmodes.php index ec8117d3b0e..7d93a7d347e 100644 --- a/htdocs/societe/paymentmodes.php +++ b/htdocs/societe/paymentmodes.php @@ -73,7 +73,7 @@ $hookmanager->initHooks(array('thirdpartybancard', 'globalcard')); $permissiontoread = $user->rights->societe->lire; $permissiontoadd = $user->rights->societe->creer; // Used by the include of actions_addupdatedelete.inc.php and actions_builddoc.inc.php -$permissiontoaddupdatepaymentinformation = ((empty($conf->global->MAIN_USE_ADVANCED_PERMS) && $permissiontoadd) || (!empty($conf->global->MAIN_USE_ADVANCED_PERMS) && !empty($user->rights->societe->addupdate_thirdparty_payment_information->write))); +$permissiontoaddupdatepaymentinformation = ((empty($conf->global->MAIN_USE_ADVANCED_PERMS) && $permissiontoadd) || (!empty($conf->global->MAIN_USE_ADVANCED_PERMS) && !empty($user->rights->societe->thirdparty_paymentinformation_advance->write))); if (!empty($conf->stripe->enabled)) { $service = 'StripeTest';