diff --git a/htdocs/fourn/facture/contact.php b/htdocs/fourn/facture/contact.php index 81e6bce37ff..f8e9a35db08 100644 --- a/htdocs/fourn/facture/contact.php +++ b/htdocs/fourn/facture/contact.php @@ -1,6 +1,7 @@ * Copyright (C) 2005-2009 Destailleur Laurent + * Copyright (C) 2005-2009 Regis Houssin * * 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 @@ -37,7 +38,7 @@ $facid = isset($_GET["facid"])?$_GET["facid"]:''; // Security check if ($user->societe_id) $socid=$user->societe_id; -$result = restrictedArea($user, 'fournisseur', $facid, '', 'facture'); +$result = restrictedArea($user, 'fournisseur', $facid, 'facture_fourn', 'facture'); /* diff --git a/htdocs/fourn/facture/document.php b/htdocs/fourn/facture/document.php index 2c35be09675..8b0482541da 100644 --- a/htdocs/fourn/facture/document.php +++ b/htdocs/fourn/facture/document.php @@ -32,8 +32,6 @@ require_once(DOL_DOCUMENT_ROOT.'/lib/fourn.lib.php'); require_once(DOL_DOCUMENT_ROOT."/lib/files.lib.php"); require_once(DOL_DOCUMENT_ROOT."/html.formfile.class.php"); -if (!$user->rights->fournisseur->facture->lire) accessforbidden(); - $langs->load('bills'); $langs->load('other'); $langs->load("companies"); @@ -43,7 +41,7 @@ $action=empty($_GET['action']) ? (empty($_POST['action']) ? '' : $_POST['action' // Security check if ($user->societe_id) $socid=$user->societe_id; -$result = restrictedArea($user, 'fournisseur', $facid, '', 'facture'); +$result = restrictedArea($user, 'fournisseur', $facid, 'facture_fourn', 'facture'); // Get parameters $page=$_GET["page"]; diff --git a/htdocs/fourn/facture/info.php b/htdocs/fourn/facture/info.php index 00c503e140e..3b0f970c830 100644 --- a/htdocs/fourn/facture/info.php +++ b/htdocs/fourn/facture/info.php @@ -29,15 +29,13 @@ require('./pre.inc.php'); require_once(DOL_DOCUMENT_ROOT."/lib/functions2.lib.php"); require_once(DOL_DOCUMENT_ROOT.'/lib/fourn.lib.php'); -if (!$user->rights->fournisseur->facture->lire) accessforbidden(); - $langs->load('bills'); $facid = isset($_GET["facid"])?$_GET["facid"]:''; // Security check if ($user->societe_id) $socid=$user->societe_id; -$result = restrictedArea($user, 'fournisseur', $facid, '', 'facture'); +$result = restrictedArea($user, 'fournisseur', $facid, 'facture_fourn', 'facture'); llxHeader(); diff --git a/htdocs/fourn/facture/note.php b/htdocs/fourn/facture/note.php index 01e52d9d15e..f0d7efd5a7c 100644 --- a/htdocs/fourn/facture/note.php +++ b/htdocs/fourn/facture/note.php @@ -28,8 +28,6 @@ require("./pre.inc.php"); require_once(DOL_DOCUMENT_ROOT.'/lib/fourn.lib.php'); -if (!$user->rights->fournisseur->facture->lire) accessforbidden(); - $langs->load('bills'); $langs->load("companies"); @@ -38,7 +36,7 @@ $action=empty($_GET['action']) ? (empty($_POST['action']) ? '' : $_POST['action' // Security check if ($user->societe_id) $socid=$user->societe_id; -$result = restrictedArea($user, 'fournisseur', $facid, '', 'facture'); +$result = restrictedArea($user, 'fournisseur', $facid, 'facture_fourn', 'facture'); $fac = new FactureFournisseur($db); $fac->fetch($_GET["facid"]); @@ -109,7 +107,7 @@ if ($_GET["facid"]) print ''.$langs->trans("RefSupplier").''.$fac->ref_supplier.''; print "\n"; - // Société + // Soci�t� print ''.$langs->trans('Company').''.$fac->fournisseur->getNomUrl(1).''; // Note publique @@ -130,7 +128,7 @@ if ($_GET["facid"]) } print ""; - // Note privée + // Note priv�e if (! $user->societe_id) { print ''.$langs->trans("NotePrivate").' :';