Fix: Wrong value for permissions id

This commit is contained in:
Laurent Destailleur 2011-01-22 10:38:05 +00:00
parent e2fcf23985
commit 8dc2a9b2c9
5 changed files with 16 additions and 16 deletions

View File

@ -49,7 +49,7 @@ class modAccounting extends DolibarrModules
global $conf;
$this->db = $DB ;
$this->numero = 1400 ;
$this->numero = 50400 ;
$this->family = "financial";
// Module label (no space allowed), used if translation string 'ModuleXXXName' not found (where XXX is value of numeric property 'numero' of module)
@ -88,42 +88,42 @@ class modAccounting extends DolibarrModules
$this->rights = array();
$this->rights_class = 'accounting';
$this->rights[1][0] = 1401;
$this->rights[1][0] = 50401;
$this->rights[1][1] = 'Lire le plan de compte';
$this->rights[1][2] = 'r';
$this->rights[1][3] = 1;
$this->rights[1][4] = 'plancompte';
$this->rights[1][5] = 'lire';
$this->rights[2][0] = 1402;
$this->rights[2][0] = 50402;
$this->rights[2][1] = 'Creer/modifier un plan de compte';
$this->rights[2][2] = 'w';
$this->rights[2][3] = 0;
$this->rights[2][4] = 'plancompte';
$this->rights[2][5] = 'creer';
$this->rights[3][0] = 1403;
$this->rights[3][0] = 50403;
$this->rights[3][1] = 'Cloturer plan de compte';
$this->rights[3][2] = 'w';
$this->rights[3][3] = 0;
$this->rights[3][4] = 'plancompte';
$this->rights[3][5] = 'cloturer';
$this->rights[4][0] = 1411;
$this->rights[4][0] = 50411;
$this->rights[4][1] = 'Lire les mouvements comptables';
$this->rights[4][2] = 'r';
$this->rights[4][3] = 1;
$this->rights[4][4] = 'mouvements';
$this->rights[4][5] = 'lire';
$this->rights[5][0] = 1412;
$this->rights[5][0] = 50412;
$this->rights[5][1] = 'Creer/modifier/annuler les mouvements comptables';
$this->rights[5][2] = 'w';
$this->rights[5][3] = 0;
$this->rights[5][4] = 'mouvements';
$this->rights[5][5] = 'creer';
$this->rights[6][0] = 1415;
$this->rights[6][0] = 50415;
$this->rights[6][1] = 'Lire CA, bilans, resultats, journaux, grands livres';
$this->rights[6][2] = 'r';
$this->rights[6][3] = 0;

View File

@ -85,14 +85,14 @@ class modDocument extends DolibarrModules
$r=0;
$this->rights[$r][0] = 510;
$this->rights[$r][0] = 511;
$this->rights[$r][1] = 'Lire les documents';
$this->rights[$r][2] = 'r';
$this->rights[$r][3] = 1;
$this->rights[$r][4] = 'lire';
$r++;
$this->rights[$r][0] = 511;
$this->rights[$r][0] = 512;
$this->rights[$r][1] = 'Supprimer les documents clients';
$this->rights[$r][2] = 'd';
$this->rights[$r][3] = 0;

View File

@ -45,7 +45,7 @@ class modDomain extends DolibarrModules
function modDomain($DB)
{
$this->db = $DB;
$this->numero = 1300 ;
$this->numero = 50400;
$this->family = "other";
// Module label (no space allowed), used if translation string 'ModuleXXXName' not found (where XXX is value of numeric property 'numero' of module)
@ -86,21 +86,21 @@ class modDomain extends DolibarrModules
$r=0;
$r++;
$this->rights[$r][0] = 1301;
$this->rights[$r][0] = 50401;
$this->rights[$r][1] = 'Read domain names';
$this->rights[$r][2] = 'r';
$this->rights[$r][3] = 1;
$this->rights[$r][4] = 'read';
$r++;
$this->rights[$r][0] = 1302;
$this->rights[$r][0] = 50402;
$this->rights[$r][1] = 'Create/modify domain names';
$this->rights[$r][2] = 'w';
$this->rights[$r][3] = 0;
$this->rights[$r][4] = 'create';
$r++;
$this->rights[$r][0] = 1303;
$this->rights[$r][0] = 50403;
$this->rights[$r][1] = 'Delete domain names';
$this->rights[$r][2] = 'd';
$this->rights[$r][3] = 0;

View File

@ -97,14 +97,14 @@ class modFTP extends DolibarrModules
$this->rights = array(); // Permission array used by this module
$r++;
$this->rights[$r][0] = 2800;
$this->rights[$r][0] = 2801;
$this->rights[$r][1] = 'Use FTP client in read mode (browse and download only)';
$this->rights[$r][2] = 'r';
$this->rights[$r][3] = 1;
$this->rights[$r][4] = 'read';
$r++;
$this->rights[$r][0] = 2801;
$this->rights[$r][0] = 2802;
$this->rights[$r][1] = 'Use FTP client in write mode (delete or upload files)';
$this->rights[$r][2] = 'w';
$this->rights[$r][3] = 0;

View File

@ -48,7 +48,7 @@ class modMantis extends DolibarrModules
// Id for module (must be unique).
// Use here a free id.
$this->numero = 1200;
$this->numero = 50300;
// Family can be 'crm','financial','hr','projects','product','technic','other'
// It is used to sort modules in module setup page