Skip to content

Commit

Permalink
Add TODO
Browse files Browse the repository at this point in the history
  • Loading branch information
eldy committed Dec 11, 2024
1 parent ba6bbdd commit 88465b7
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion htdocs/core/modules/modStock.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ class modStock extends DolibarrModules
*/
public function __construct($db)
{
global $conf, $langs;
global $langs;

$this->db = $db;
$this->numero = 52;
Expand Down Expand Up @@ -156,6 +156,17 @@ public function __construct($db)
$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
Expand Down

0 comments on commit 88465b7

Please sign in to comment.