Skip to content

Commit

Permalink
Update modAccounting.class.php
Browse files Browse the repository at this point in the history
  • Loading branch information
eldy committed Jun 24, 2019
1 parent 3091288 commit f66281d
Showing 1 changed file with 17 additions and 16 deletions.
33 changes: 17 additions & 16 deletions htdocs/core/modules/modAccounting.class.php
Expand Up @@ -170,7 +170,23 @@ public function __construct($db)
$this->rights = array(); // Permission array used by this module
$r = 0;

$this->rights[$r][0] = 50401;
$this->rights[$r][0] = 50440;
$this->rights[$r][1] = 'Manage chart of accounts, setup of accountancy';
$this->rights[$r][2] = 'r';
$this->rights[$r][3] = 0;
$this->rights[$r][4] = 'chartofaccount';
$this->rights[$r][5] = '';
$r++;

$this->rights[$r][0] = 50430;
$this->rights[$r][1] = 'Define and close a fiscal year';
$this->rights[$r][2] = 'r';
$this->rights[$r][3] = 0;
$this->rights[$r][4] = 'fiscalyear';
$this->rights[$r][5] = '';
$r++;

$this->rights[$r][0] = 50401;
$this->rights[$r][1] = 'Bind products and invoices with accounting accounts';
$this->rights[$r][2] = 'r';
$this->rights[$r][3] = 0;
Expand Down Expand Up @@ -236,21 +252,6 @@ public function __construct($db)
$this->rights[$r][5] = 'lire';
$r++;

$this->rights[$r][0] = 50430;
$this->rights[$r][1] = 'Define and close a fiscal year';
$this->rights[$r][2] = 'r';
$this->rights[$r][3] = 0;
$this->rights[$r][4] = 'fiscalyear';
$this->rights[$r][5] = '';
$r++;

$this->rights[$r][0] = 50440;
$this->rights[$r][1] = 'Manage chart of accounts, setup of accountancy';
$this->rights[$r][2] = 'r';
$this->rights[$r][3] = 0;
$this->rights[$r][4] = 'chartofaccount';
$this->rights[$r][5] = '';
$r++;

// Menus
//-------
Expand Down

0 comments on commit f66281d

Please sign in to comment.