On utilise plus la notion d'autrui
This commit is contained in:
parent
9d2ea891c2
commit
dd7e6db627
@ -99,8 +99,8 @@ class modFacture
|
||||
$sql[0] = "insert into llx_rights_def values (10,'Tous les droits sur les factures','facture','a',0);";
|
||||
$sql[1] = "insert into llx_rights_def values (11,'Lire les factures','facture','r',1);";
|
||||
$sql[2] = "insert into llx_rights_def values (12,'Créer modifier les factures','facture','w',0);";
|
||||
$sql[3] = "insert into llx_rights_def values (13,'Modifier les factures d\'autrui','facture','m',0);";
|
||||
$sql[4] = "insert into llx_rights_def values (14,'Supprimer les factures','facture','d',0);";
|
||||
// $sql[3] = "insert into llx_rights_def values (13,'Modifier les factures d\'autrui','facture','m',0);";
|
||||
$sql[3] = "insert into llx_rights_def values (14,'Supprimer les factures','facture','d',0);";
|
||||
|
||||
for ($i = 0 ; $i < sizeof($sql) ; $i++)
|
||||
{
|
||||
|
||||
@ -51,10 +51,9 @@ class modFicheinter
|
||||
"INSERT INTO llx_rights_def VALUES (60,'Tous les droits sur les fiches d\'intervention','ficheinter','a',0);",
|
||||
"INSERT INTO llx_rights_def VALUES (61,'Lire les fiches d\'intervention','ficheinter','r',1);",
|
||||
"INSERT INTO llx_rights_def VALUES (62,'Créer modifier les fiches d\'intervention','ficheinter','w',0);",
|
||||
"INSERT INTO llx_rights_def VALUES (63,'Modifier les fiches d\'intervention d\'autrui','ficheinter','m',0);",
|
||||
"INSERT INTO llx_rights_def VALUES (64,'Supprimer les fiches d\'intervention','ficheinter','d',0);"
|
||||
);
|
||||
|
||||
//"INSERT INTO llx_rights_def VALUES (63,'Modifier les fiches d\'intervention d\'autrui','ficheinter','m',0);",
|
||||
for ($i = 0 ; $i < sizeof($sql) ; $i++)
|
||||
{
|
||||
$this->db->query($sql[$i]);
|
||||
|
||||
72
htdocs/includes/modules/modProjet.class.php
Normal file
72
htdocs/includes/modules/modProjet.class.php
Normal file
@ -0,0 +1,72 @@
|
||||
<?PHP
|
||||
/* Copyright (C) 2003 Rodolphe Quiedeville <rodolphe@quiedeville.org>
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation; either version 2 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program; if not, write to the Free Software
|
||||
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||
*
|
||||
* $Id$
|
||||
* $Source$
|
||||
*
|
||||
*/
|
||||
|
||||
class modProjet
|
||||
{
|
||||
|
||||
/*
|
||||
* Initialisation
|
||||
*
|
||||
*/
|
||||
|
||||
Function modProjet($DB)
|
||||
{
|
||||
$this->db = $DB ;
|
||||
}
|
||||
/*
|
||||
*
|
||||
*
|
||||
*
|
||||
*/
|
||||
|
||||
Function init()
|
||||
{
|
||||
/*
|
||||
* Activation du module
|
||||
*/
|
||||
/*
|
||||
* Permissions
|
||||
*/
|
||||
$sql = array(
|
||||
"insert into llx_rights_def values (40,'Tous les droits sur les projets','projet','a',0);",
|
||||
"insert into llx_rights_def values (41,'Lire les projets','projet','r',1);",
|
||||
"insert into llx_rights_def values (42,'Créer modifier les projets','projet','w',0);",
|
||||
//"insert into llx_rights_def values (43,'Modifier les projets d\'autrui','projet','m',0);",
|
||||
"insert into llx_rights_def values (44,'Supprimer les projets','projet','d',0);"
|
||||
);
|
||||
|
||||
for ($i = 0 ; $i < sizeof($sql) ; $i++)
|
||||
{
|
||||
$this->db->query($sql[$i]);
|
||||
}
|
||||
}
|
||||
/*
|
||||
*
|
||||
*
|
||||
*/
|
||||
Function remove()
|
||||
{
|
||||
$sql = "DELETE FROM llx_rights_def WHERE module = 'projet';";
|
||||
$this->db->query($sql);
|
||||
}
|
||||
}
|
||||
?>
|
||||
Loading…
Reference in New Issue
Block a user