From e55df8a39c1d3e3858dd648d3c7c0a6c126b5dd4 Mon Sep 17 00:00:00 2001 From: Rodolphe Quiedeville Date: Thu, 25 Aug 2005 14:52:30 +0000 Subject: [PATCH] =?UTF-8?q?Ajout=20d'une=20permission=20g=E9n=E9rale?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- htdocs/includes/modules/modCommercial.class.php | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) 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); }