Modify name of advance right
This commit is contained in:
parent
2ebdc6a430
commit
1107c6a208
@ -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
|
||||
|
||||
@ -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';
|
||||
|
||||
Loading…
Reference in New Issue
Block a user