Qual: Modification du code pour que la gestion de droits fonctionne partout avec le nouveau systme (champ perms et subperms). Suppression ancienne mthode.

This commit is contained in:
Laurent Destailleur
2005-02-16 21:27:45 +00:00
parent 917bfceee6
commit 6ad1ff2c08
15 changed files with 164 additions and 265 deletions

View File

@@ -103,21 +103,25 @@ class modCommande extends DolibarrModules
$this->rights[1][1] = 'Lire les commandes';
$this->rights[1][2] = 'r';
$this->rights[1][3] = 1;
$this->rights[1][4] = 'lire';
$this->rights[2][0] = 82;
$this->rights[2][1] = 'Cr<43>er modifier les commandes';
$this->rights[2][2] = 'w';
$this->rights[2][3] = 0;
$this->rights[2][4] = 'creer';
$this->rights[3][0] = 84;
$this->rights[3][1] = 'Valider les commandes';
$this->rights[3][2] = 'd';
$this->rights[3][3] = 0;
$this->rights[3][4] = 'valider';
$this->rights[4][0] = 89;
$this->rights[4][1] = 'Supprimer les commandes';
$this->rights[4][2] = 'd';
$this->rights[4][3] = 0;
$this->rights[4][4] = 'supprimer';
// Dir
$this->dirs[0] = $conf->commande->dir_output;