Modif permissions
This commit is contained in:
parent
7c2ef05a38
commit
1180eff5e7
@ -30,8 +30,9 @@
|
||||
|
||||
require("./pre.inc.php");
|
||||
|
||||
$langs->load("orders");
|
||||
if (!$user->rights->commande->lire) accessforbidden();
|
||||
|
||||
$langs->load("orders");
|
||||
|
||||
llxHeader("",$langs->trans("Orders"),"Commande");
|
||||
|
||||
|
||||
@ -22,10 +22,10 @@
|
||||
*/
|
||||
|
||||
/**
|
||||
\file htdocs/commande/liste.php
|
||||
\ingroup commande
|
||||
\brief Page liste des commandes
|
||||
\version $Revision$
|
||||
\file htdocs/commande/liste.php
|
||||
\ingroup commande
|
||||
\brief Page liste des commandes
|
||||
\version $Revision$
|
||||
*/
|
||||
|
||||
|
||||
@ -33,9 +33,7 @@ require("./pre.inc.php");
|
||||
|
||||
$langs->load("orders");
|
||||
|
||||
$user->getrights('commande');
|
||||
if (!$user->rights->commande->lire)
|
||||
accessforbidden();
|
||||
if (!$user->rights->commande->lire) accessforbidden();
|
||||
|
||||
/*
|
||||
* Sécurité accés client
|
||||
|
||||
@ -31,6 +31,8 @@
|
||||
require("../main.inc.php");
|
||||
require_once(DOL_DOCUMENT_ROOT."/commande/commande.class.php");
|
||||
|
||||
$user->getrights('commande');
|
||||
|
||||
$langs->load("orders");
|
||||
|
||||
|
||||
|
||||
@ -29,6 +29,9 @@
|
||||
*/
|
||||
|
||||
require("./pre.inc.php");
|
||||
|
||||
if (!$user->rights->commande->lire) accessforbidden();
|
||||
|
||||
require(DOL_DOCUMENT_ROOT."/commande/commande.class.php");
|
||||
require("./commandestats.class.php");
|
||||
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
<?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>
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify
|
||||
@ -30,6 +30,9 @@
|
||||
|
||||
require("../../main.inc.php");
|
||||
require("../../bargraph.class.php");
|
||||
|
||||
$user->getrights('commande');
|
||||
|
||||
$langs->load("orders");
|
||||
|
||||
function llxHeader($head = "", $title="", $help_url='')
|
||||
|
||||
Loading…
Reference in New Issue
Block a user