NEW : add new permissions to read supplier prices (#33598)

* add new permissions to read supplier prices

* Update modProduct.class.php

* Update modProduct.class.php

* Update modService.class.php

---------

Co-authored-by: Christophe Battarel <christophe@altairis.fr>
Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>
This commit is contained in:
Christophe Battarel
2025-03-25 19:33:30 +01:00
committed by GitHub
parent 6ea3da0b61
commit 71acce0afb
2 changed files with 16 additions and 0 deletions

View File

@@ -110,6 +110,14 @@ class modService extends DolibarrModules
$this->rights[$r][5] = 'read_prices';
$r++;
$this->rights[$r][0] = 535; // id de la permission
$this->rights[$r][1] = 'Read supplier prices'; // libelle de la permission
$this->rights[$r][2] = 'w'; // type de la permission (deprecated)
$this->rights[$r][3] = 0; // La permission est-elle une permission par default
$this->rights[$r][4] = 'product_advance';
$this->rights[$r][5] = 'read_supplier_prices';
$r++;
$this->rights[$r][0] = 534; // id de la permission
$this->rights[$r][1] = 'Delete les services'; // libelle de la permission
$this->rights[$r][2] = 'd'; // type de la permission (deprecated)