This commit is contained in:
Laurent Destailleur (aka Eldy)
2024-12-11 17:51:16 +01:00
parent ba6bbdda0e
commit 88465b7b42

View File

@@ -44,7 +44,7 @@ class modStock extends DolibarrModules
*/
public function __construct($db)
{
global $conf, $langs;
global $langs;
$this->db = $db;
$this->numero = 52;
@@ -156,6 +156,17 @@ class modStock extends DolibarrModules
$this->rights[$r][4] = 'mouvement';
$this->rights[$r][5] = 'creer';
if (getDolGlobalInt('MAIN_FEATURES_LEVEL') >= 2) {
// Not yet implemented. TODO
$r++;
$this->rights[$r][0] = 1008;
$this->rights[$r][1] = 'Read stock value';
$this->rights[$r][2] = 'w';
$this->rights[$r][3] = 0;
$this->rights[$r][4] = 'value_advance';
$this->rights[$r][5] = 'read';
}
$r++;
$this->rights[$r][0] = 1011;
$this->rights[$r][1] = 'inventoryReadPermission'; // Permission label