From 9c80328ad45d5ba92de04b36d3ab6e9c0a360d69 Mon Sep 17 00:00:00 2001 From: Rodolphe Quiedeville Date: Mon, 11 Aug 2003 19:31:20 +0000 Subject: [PATCH] =?UTF-8?q?Mise=20=E0=201=20par=20d=E9faut=20des=20options?= =?UTF-8?q?=20modules=20comm=20et=20compta=20Remplac=E9es=20de=20fait=20pa?= =?UTF-8?q?r=20les=20permissions?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- htdocs/user.class.php3 | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/htdocs/user.class.php3 b/htdocs/user.class.php3 index 568be7561b1..5513e4da214 100644 --- a/htdocs/user.class.php3 +++ b/htdocs/user.class.php3 @@ -45,8 +45,8 @@ class User $this->db = $DB; $this->id = $id; - $this->comm = 0; - $this->compta = 0; + $this->comm = 1; + $this->compta = 1; $this->limite_liste = 0; $this->rights->facture->lire = 0; @@ -365,9 +365,6 @@ class User $this->contact_id = $obj->fk_socpeople; - $this->comm = $obj->module_comm; - $this->compta = $obj->module_compta; - $this->login = $obj->login; $this->pass = $obj->pass; $this->webcal_login = $obj->webcal_login; @@ -580,8 +577,8 @@ class User $sql .= ", email = '$this->email'"; $sql .= ", admin = $this->admin"; $sql .= ", webcal_login = '$this->webcal_login'"; - $sql .= ", module_comm = $this->comm"; - $sql .= ", module_compta = $this->compta"; + $sql .= ", module_comm = 1"; + $sql .= ", module_compta = 1"; $sql .= ", code = '$this->code'"; $sql .= ", note = '$this->note'"; $sql .= " WHERE rowid = $this->id";