From 594065ef79d02195ae3aa5e4f3aa01877467a242 Mon Sep 17 00:00:00 2001 From: Rodolphe Quiedeville Date: Fri, 21 Nov 2003 12:46:37 +0000 Subject: [PATCH] Modification des permissions --- htdocs/compta/bank/index.php | 4 +--- htdocs/compta/bank/ligne.php | 4 +--- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/htdocs/compta/bank/index.php b/htdocs/compta/bank/index.php index f108960f119..347b01ba66c 100644 --- a/htdocs/compta/bank/index.php +++ b/htdocs/compta/bank/index.php @@ -24,9 +24,7 @@ require("./bank.lib.php"); require("../../tva.class.php"); require("../../chargesociales.class.php"); -$user->getrights('compta'); - -if (!$user->admin && !$user->rights->compta->bank) +if (!$user->rights->banque->lire) accessforbidden(); llxHeader(); diff --git a/htdocs/compta/bank/ligne.php b/htdocs/compta/bank/ligne.php index 18dea8b359f..553191db03f 100644 --- a/htdocs/compta/bank/ligne.php +++ b/htdocs/compta/bank/ligne.php @@ -22,9 +22,7 @@ */ require("./pre.inc.php"); -$user->getrights('compta'); - -if (!$user->admin && !$user->rights->compta->bank) +if (!$user->rights->banque->modifier) accessforbidden(); llxHeader();