Modif permissions
This commit is contained in:
parent
7c2ef05a38
commit
1180eff5e7
@ -30,8 +30,9 @@
|
|||||||
|
|
||||||
require("./pre.inc.php");
|
require("./pre.inc.php");
|
||||||
|
|
||||||
$langs->load("orders");
|
if (!$user->rights->commande->lire) accessforbidden();
|
||||||
|
|
||||||
|
$langs->load("orders");
|
||||||
|
|
||||||
llxHeader("",$langs->trans("Orders"),"Commande");
|
llxHeader("",$langs->trans("Orders"),"Commande");
|
||||||
|
|
||||||
|
|||||||
@ -33,9 +33,7 @@ require("./pre.inc.php");
|
|||||||
|
|
||||||
$langs->load("orders");
|
$langs->load("orders");
|
||||||
|
|
||||||
$user->getrights('commande');
|
if (!$user->rights->commande->lire) accessforbidden();
|
||||||
if (!$user->rights->commande->lire)
|
|
||||||
accessforbidden();
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Sécurité accés client
|
* Sécurité accés client
|
||||||
|
|||||||
@ -31,6 +31,8 @@
|
|||||||
require("../main.inc.php");
|
require("../main.inc.php");
|
||||||
require_once(DOL_DOCUMENT_ROOT."/commande/commande.class.php");
|
require_once(DOL_DOCUMENT_ROOT."/commande/commande.class.php");
|
||||||
|
|
||||||
|
$user->getrights('commande');
|
||||||
|
|
||||||
$langs->load("orders");
|
$langs->load("orders");
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@ -29,6 +29,9 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
require("./pre.inc.php");
|
require("./pre.inc.php");
|
||||||
|
|
||||||
|
if (!$user->rights->commande->lire) accessforbidden();
|
||||||
|
|
||||||
require(DOL_DOCUMENT_ROOT."/commande/commande.class.php");
|
require(DOL_DOCUMENT_ROOT."/commande/commande.class.php");
|
||||||
require("./commandestats.class.php");
|
require("./commandestats.class.php");
|
||||||
|
|
||||||
|
|||||||
@ -1,5 +1,5 @@
|
|||||||
<?php
|
<?php
|
||||||
/* Copyright (C) 2003 Rodolphe Quiedeville <rodolphe@quiedeville.org>
|
/* Copyright (C) 2003-2005 Rodolphe Quiedeville <rodolphe@quiedeville.org>
|
||||||
* Copyright (C) 2004 Laurent Destailleur <eldy@users.sourceforge.net>
|
* Copyright (C) 2004 Laurent Destailleur <eldy@users.sourceforge.net>
|
||||||
*
|
*
|
||||||
* This program is free software; you can redistribute it and/or modify
|
* This program is free software; you can redistribute it and/or modify
|
||||||
@ -30,6 +30,9 @@
|
|||||||
|
|
||||||
require("../../main.inc.php");
|
require("../../main.inc.php");
|
||||||
require("../../bargraph.class.php");
|
require("../../bargraph.class.php");
|
||||||
|
|
||||||
|
$user->getrights('commande');
|
||||||
|
|
||||||
$langs->load("orders");
|
$langs->load("orders");
|
||||||
|
|
||||||
function llxHeader($head = "", $title="", $help_url='')
|
function llxHeader($head = "", $title="", $help_url='')
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user