|
@@ -173,7 +173,7 @@ class modMyModule extends DolibarrModules
|
|
|
|
|
|
// Add here list of permission defined by an id, a label, a boolean and two constant strings.
|
|
|
// Example:
|
|
|
- // $this->rights[$r][0] = 2000; // Permission id (must not be already used)
|
|
|
+ // $this->rights[$r][0] = $this->numero + $r; // Permission id (must not be already used)
|
|
|
// $this->rights[$r][1] = 'Permision label'; // Permission label
|
|
|
// $this->rights[$r][3] = 1; // Permission by default for new user (0/1)
|
|
|
// $this->rights[$r][4] = 'level1'; // In php code, permission will be checked by test if ($user->rights->permkey->level1->level2)
|