diff --git a/htdocs/includes/modules/modCommercial.class.php b/htdocs/includes/modules/modCommercial.class.php index 6133cafe29d..a94ead88a30 100644 --- a/htdocs/includes/modules/modCommercial.class.php +++ b/htdocs/includes/modules/modCommercial.class.php @@ -1,5 +1,5 @@ +/* Copyright (C) 2003-2005 Rodolphe Quiedeville * Copyright (C) 2004 Laurent Destailleur * Copyright (C) 2004 Sebastien Di Cintio * Copyright (C) 2004 Benoit Mortier @@ -92,6 +92,19 @@ class modCommercial extends DolibarrModules function init() { $sql = array(); + + // Permissions + $this->remove(); + $r = 1; + + // 261 : Permission générale + $this->rights[$r][0] = 261; + $this->rights[$r][1] = 'Informations commerciales'; + $this->rights[$r][2] = 'r'; + $this->rights[$r][3] = 1; + $this->rights[$r][4] = 'main'; + $this->rights[$r][5] = 'lire'; + $r++; return $this->_init($sql); }