Modify name of advance right

This commit is contained in:
Alexandre SPANGARO 2021-11-16 04:32:09 +01:00
parent 2ebdc6a430
commit 1107c6a208
2 changed files with 2 additions and 2 deletions

View File

@ -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

View File

@ -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';