Skip to content

Commit

Permalink
Fix: Wrong value for permissions id
Browse files Browse the repository at this point in the history
  • Loading branch information
eldy committed Jan 22, 2011
1 parent e2fcf23 commit 8dc2a9b
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 16 deletions.
14 changes: 7 additions & 7 deletions htdocs/includes/modules/modAccounting.class.php
Expand Up @@ -49,7 +49,7 @@ function modAccounting($DB)
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)
Expand Down Expand Up @@ -88,42 +88,42 @@ function modAccounting($DB)
$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;
Expand Down
4 changes: 2 additions & 2 deletions htdocs/includes/modules/modDocument.class.php
Expand Up @@ -85,14 +85,14 @@ function modDocument($DB)

$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;
Expand Down
8 changes: 4 additions & 4 deletions htdocs/includes/modules/modDomain.class.php
Expand Up @@ -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)
Expand Down Expand Up @@ -86,21 +86,21 @@ function modDomain($DB)
$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;
Expand Down
4 changes: 2 additions & 2 deletions htdocs/includes/modules/modFTP.class.php
Expand Up @@ -97,14 +97,14 @@ function modFTP($DB)
$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;
Expand Down
2 changes: 1 addition & 1 deletion htdocs/includes/modules/modMantis.class.php
Expand Up @@ -48,7 +48,7 @@ function modMantis($DB)

// 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
Expand Down

0 comments on commit 8dc2a9b

Please sign in to comment.